Have anyone seen this: https://github.com/facebookincubator/BOLT <-- this is original repo than the fork I provided earlier.
I think it may be quite interesting experiment to apply this to Crystal app to see if there any performance improvement can be applied.
I have heard of this tool but never really looked at it. I saw this talk https://youtu.be/r-TLSBdHe1A and he says binary layout causes massive performance problems. At least way more then I thought.
Cool! I will check that video. But I found that idea quite interesting as this is exectly what HotSpot Java and NodeJS are doing. They do rough optimization during initial compilation and execution and then monitoring performance during the code execution. If they found problematic hot spot, they recompile it with better execution profile guided optimization. The longer you run the app the faster it working (nee server apps)
I just finished to watch that video. That stabilizer tool is cool. It can be used in parallel to figure out what parts of code are dependable on binary layout.
I would like to bring some of those ideas to Crystal. I think there is a coz profiler integration.