4 ms·
Its called profile guided optimization, although they don’t run with an actual JIT. The big 3 C compilers all have it.
by jdsully 7y ago
Its called profile guided optimization, although they don’t run with an actual JIT. The big 3 C compilers all have it.
- The_rationalist 7y agoIt is clearly less powerful, it analyse one sample and extrapolate from it. Every user should have it's own PGO and regularly refresh it to be competitive with the advantage of JIT profiling
- btrask 7y agoThis is a completely legitimate comment (which was 'dead' when I saw it). PGO really is less powerful than JIT. A compiled language with a "micro-JIT" (e.g. for v-tables) seems like an interesting idea to me.
- tracker1 7y agoJust curious what the big 3 you're considering are? - gcc - clang - msvc - intel
- jdsully 7y agoYes in that order. Maybe you could say big 4, but I find Intel is only popular in smaller niches.
- fulafel 7y agoPGO as done in C family compilers of today can't make speculative optimizations and fall back to recompilation, so it's much weaker.