Skip to content

Hooks for macro classloader caching #483

Open
@retronym

Description

@retronym

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions