scala-dev icon indicating copy to clipboard operation
scala-dev copied to clipboard

Hooks for macro classloader caching

Open retronym opened this issue 7 years ago • 1 comments
trafficstars

Macros implementations are executed with reflection from a classloader created from the entire compilation classpath.

Scala 2.12.6 adds experimental support for caching these classloaders for performance reasons.

In practice, when multiple Globals are being used with differing classpaths, the caching often doesn't help.

It would be good if the compiler offered a programatic hook and/or config options to let users specify the runtime classpath of each macro (which would be a small subset of the full classpath)

retronym avatar Apr 24 '18 14:04 retronym

Did this progress in any way in scala or in zinc?

dwijnand avatar Nov 04 '20 16:11 dwijnand