5 ms·
And do you cache jitcode of the same page between different visits?
by alcuadrado 14y ago
And do you cache jitcode of the same page between different visits?
- evilpie 14y agoNo. We however had several ideas over the years to cache bytecode together with the JavaScript code. But that never really went anywhere. Caching JIT-code is difficult, because addresses (like jumps) change unless you malloc at the exact same location or manually fix up everything.
- alcuadrado 14y agoI see. I was thinking in something more bytecode-like, didn't knew that jitcode has direct adressess in it.
- pedroo 14y agoHow much worse peformance-wise would generating PIC be to address this?
- derefr 14y agoIt sounds like you need two separate JITcode phases: first, generate Position-Independent JITcode (and cache that); then for each script that requires it, load it and "link" it.
- kannanvijayan 14y agoIf a page goes into the back/forward cache, then its js code generally gets kept around. But we don't persistently store jitcode for a page, and I don't know of any JS engine that does.