4 ms·
Guys, what's a "trace optimizer"? Google is failing me by returning results about MySQL.
by omginternets 11y ago
Guys, what's a "trace optimizer"? Google is failing me by returning results about MySQL.
- pramodliv1 11y agoSearch https://www.google.com?q=trace+optimizer+compilers https://www.google.com?q=trace+optimizer+compilers According to wikipedia: https://en.wikipedia.org/wiki/Tracing_just-in-time_compilation https://en.wikipedia.org/wiki/Tracing_just-in-time_compilati... Tracing just-in-time compilation is a technique used by virtual machines to optimize the execution of a program at runtime. This is done by recording a linear sequence of frequently executed operations, compiling them to native machine code and executing them. This is opposed to traditional just-in-time (JIT) compilers that work on a per-method basis.
- Nyetan 11y agoThey're referring to a tracing JIT[1], I believe. [1]:https://en.wikipedia.org/wiki/Tracing_just-in-time_compilation https://en.wikipedia.org/wiki/Tracing_just-in-time_compilati...
- shellac 11y agoI assume it's a reference to tracing JIT (https://en.wikipedia.org/wiki/Tracing_just-in-time_compilation https://en.wikipedia.org/wiki/Tracing_just-in-time_compilati...). It's a JIT that traces runtime execution, rather than looking at whole method or function bodies. In particular it eliminates control flow, which simplifies optimisation.
- DasIch 11y agoTraces are an artifact produced by some JITs. Basically you observe loops and loops that satisfy certain criteria are traced, that is all operations performed within one iteration are stored. Such a trace is then optimized, compiled to machine code and then executed for every iteration when the loop is encountered again.