3 ms·
> you still won't be 100% sure the compiler really optimizes the execution the way you intended. You can be sure if you read the generated Core and/or assembly
by codygman 11y ago
> you still won't be 100% sure the compiler really optimizes the execution the way you intended.
You can be sure if you read the generated Core and/or assembly code.
- TheLoneWolfling 11y agoAnd if you're willing to do that on every upgrade of the compiler or anything that may affect the compiler's exact execution path.
- codygman 11y agoPerformance regressions in GHC are taken seriously as far as I've seen. It's not that big of a deal since you should test/profile your program on any compiler upgrade. If you see any regressions, just post it to the ghc mailing list and it will probably be solved for you since it's much needed regression feedback/data.
- TheLoneWolfling 11y agoThat's good to know. Though I will note that I don't use Haskell. (Haven't had the time to properly learn it, and keep getting frustrated by minor things when I try to dabble with it.) That being said, I used to think that about Java as well - and then the whole substring thing happened.