21 Jul 2025 |
magic_rb | not that im aware of | 10:08:10 |
magic_rb | ghc-options: -Wall -threaded -O2 -fllvm -Wno-unrecognised-pragmas -fspecialise-aggressively -fexpose-all-unfoldings
on my library and executables | 10:08:23 |
magic_rb | but not in cabal.project | 10:08:29 |
magic_rb | and when i was profiling this back then, most of the slowness was in my code because of my custom monad transformer | 10:09:04 |
magic_rb | im gonna remove the inline pragmas, those didnt seem to be enough last time i tried, which is why i enabled -fexpose-all-unfoldings | 10:10:29 |
magic_rb | but ill try to removing them again and see if some difference shows up | 10:10:42 |
magic_rb | okay, same result, im completely confused and have no clue what is going on | 10:19:40 |
maralorn | I mean, is it a different ghc version than when you added those flags? | 10:20:28 |
magic_rb | i think i found it | 10:21:36 |
magic_rb | there was a problem between the keyboard and my chair | 10:21:50 |
magic_rb | the monkey forgot to use a variable he declared | 10:21:57 |
Alex | In reply to @magic_rb:matrix.redalder.org im benchmarking a thing i wrote and im making a nix package out of a cabal file using cabal2nix , however if i change the source cabal file and remove -fllvm , -O2 , or -fexpose-all-unfoldings the performance measurements dont seem to change even though im positive they should. Is nixpkgs overwriting my flags somehow? If you're using a profiling build, beware of automatic cost centres (IIRC enabled by default in cabal). | 10:37:54 |
magic_rb | In reply to @alex:tunstall.xyz If you're using a profiling build, beware of automatic cost centres (IIRC enabled by default in cabal). Nope, i know about those | 10:49:29 |