From ivan.brennan at gmail.com Tue Sep 22 01:18:10 2020 From: ivan.brennan at gmail.com (ivan) Date: Mon, 21 Sep 2020 21:18:10 -0400 Subject: [xmonad] compiling with -O2 optimization Message-ID: Hi, Is it inadvisable to compile your xmonad.hs with level 2 optimization enabled? I added the following pragma to my config, and haven't had any problems yet: {-# OPTIONS_GHC -O2 #-} I searched issues/commits/google but wasn't able to find any discussion on this -Ivan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From byorgey at gmail.com Tue Sep 22 01:56:02 2020 From: byorgey at gmail.com (Brent Yorgey) Date: Mon, 21 Sep 2020 20:56:02 -0500 Subject: [xmonad] compiling with -O2 optimization In-Reply-To: References: Message-ID: I doubt it makes much difference. The amount of computation xmonad is doing is relatively small, so optimizations shouldn't make much noticeable difference. On the other hand it very well may increase compile times (i.e. how long you have to wait after hitting mod-q to do a hot reload). Disclaimer: I am not a Haskell performance expert. -Brent On Mon, Sep 21, 2020 at 8:18 PM ivan wrote: > Hi, > > Is it inadvisable to compile your xmonad.hs with level 2 optimization > enabled? I added the following pragma to my config, and haven't had any > problems yet: > > {-# OPTIONS_GHC -O2 #-} > > I searched issues/commits/google but wasn't able to find any discussion on > this > > -Ivan. > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dominik.schrempf at gmail.com Tue Sep 22 07:55:38 2020 From: dominik.schrempf at gmail.com (Dominik Schrempf) Date: Tue, 22 Sep 2020 09:55:38 +0200 Subject: [xmonad] compiling with -O2 optimization In-Reply-To: References: Message-ID: <63F2B225-C293-417D-BF96-D22960A66B8F@gmail.com> I think that this only makes sense if you also compile all libraries with -O2. On September 22, 2020 3:18:10 AM GMT+02:00, ivan wrote: >Hi, > >Is it inadvisable to compile your xmonad.hs with level 2 optimization >enabled? I added the following pragma to my config, and haven't had any >problems yet: > > {-# OPTIONS_GHC -O2 #-} > >I searched issues/commits/google but wasn't able to find any discussion >on >this > >-Ivan. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -------------- next part -------------- An HTML attachment was scrubbed... URL: