uix library also does props translation and uses cache[1] - prop names translation might be a hot code path.
I think helix should explore this possibility as well. I don't think it is that important for helix because 99% of time props get translated statically and is not worth optimizing of the rest of dynamic cases.
But in the other direction bean is dynamic so caching there would make more sense. So we could keep only cache from js names back to cljs keywords.
A prerequisity for this should be to have some reliable benchmarks to decide if this would be worth it.
uix library also does props translation and uses cache[1] - prop names translation might be a hot code path.
I think helix should explore this possibility as well. I don't think it is that important for helix because 99% of time props get translated statically and is not worth optimizing of the rest of dynamic cases.
But in the other direction bean is dynamic so caching there would make more sense. So we could keep only cache from js names back to cljs keywords.
A prerequisity for this should be to have some reliable benchmarks to decide if this would be worth it.
[1] https://github.com/roman01la/uix/blob/fea214e15365f3f316f55a3524dd98f2fc6fa255/core/src/uix/compiler/alpha.cljs#L57-L75