back

by vardump·11y ago·view on hn ↗
Yeah, I do. Kind of.

Static code carries a lot of overhead in some cases.

SwiftShader is a specialized JIT. It generates the code at runtime. It beats any C-code by about an order of magnitude.

https://www.transgaming.com/swiftshader/faq

All fast RegExp matchers do JIT compilation. Like PCRE. Native code just can't compete. IIRC, about an order of magnitude advantage.

Firewall rules can benefit from JIT by an order of magnitude. For example: https://wiki.freebsd.org/SummerOfCode2014/ConvertingIPFWRule...

1 comments
> All fast RegExp matchers do JIT compilation. Like PCRE. Native code just can't compete.

I thought that most "native" regex engines basically amounted to small interpreters written in a compiled language. I'd be surprised if the languages that actually compile their regexes to native code are not competitive.

Yes, that's exactly what I meant. Those "small interpreters written in a compiled language" have no chance against Just-in-Time compiled code.