Re:How does LuaJIT's trace compiler work?
by JoeAltmaier on Saturday November 30, 2013 @09:47AM
(#6823265)
My point exactly. This slight optimization is all you get. I think this technology is being oversold if that's all they got.
The firewall rule example Mike Pall gives is a pretty good one. You have code that has many different paths through it, but only specific ones are triggered, dynamically, by a particular attack. Those can be compiled into traces that assume the other paths are not taken (except to guard the possible control flow splits with trace exits). This can allow an optimizer to make much more aggressive assumptions on the actually-taken paths.