hfhbd
07/09/2024, 8:57 AMpluginContext.referenceClass
in visitClass
each time a class visited (because it is memorized in compiler) , or should I call it once lazily and keep it in the transformer as variable? Or will be the transformer created multiple times/for each thread?dmitriy.novozhilov
07/09/2024, 9:01 AMreferenceClass
does have memorization under the hood, but you can speed it up by making your own cache, because in this way you will lookup in much smaller maps
But it's worth to do it only if you are sure that it is actually a hot place which requires additional optimizations