Repository navigation
Conversation
|
cc @arnaud-lb for review this one saves only one write per trace entry. the other optimization I dm'd you about gives +~8% performance in recursive scenarios but regresses non-recursive calls by about the same amount. |
|
It's unfortunate that we have to reserve an additional register. On x86_64 this leaves only one free callee saved register. Another approach would be to infer the trace num from the trace address. We can find the trace address on the stack if we |
|
Sorry for the slow answer, am still working on the unshare PR for ZTS behaviour. I think we still have 3 callee saved registers after this. r14+15 are obviously used, r12 is gone with this, but r13, rbp and rbx should be free? I've not found any regressions from the added register pressure, but I can test the call approach later. Let me just finish the cwd branch first. |
WIP...
benchmarks from docker library (all jit on):
aarch64 (Ampere A1):
x86_64 (13700k P-core):