Skip to content

Cache classloaders to allow warmup #61

Closed
@nedtwigg

Description

@nedtwigg

Based on the profiling data available here, it looks like we can expect to see a ~7x speedup if we allowed JarState classloaders to be cached between gradle runs, so that the JIT could let them warm up.

The code in question would be JarState::openIsolatedClassLoader(). Currently this method is called at the beginning of a call to format, and then the classloader is closed at the end of the call. Here's a usage example.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions