This week I have run the benchmarks for AA hooks using dmd just to see if there are any particular performance regressions. Surprisingly, there were some, namely with _aaKeys
and _aaValues
. I found the root cause of the issue, presented it to Rainer and he got it fixed [1].
I have also started a refactorization of the benchmarking script to make it compatible with LDC and GDC [2]. This will allow us to test the real gains of the templated hooks, since DMD is not really focused on performance and lacks some optimizations.
[1] https://github.com/dlang/dmd/pull/21066#discussion_r2241781267
[2] https://github.com/teodutu/druntime-hooks-benchmarks/pull/7