using modules for caching
peter.levart at gmail.com
Wed Dec 2 16:45:59 UTC 2015
On 12/02/2015 01:40 PM, Jochen Theodorou wrote:
> I was wondering if it will be possible to reuse module information between runs.. Currently I am collecting a lot of reflective information and use it to build a meta class system, which I then need to do method invocations, what fields are available and other things like that. Since that can take a while I was wondering if it is possible to cache this information which made me wonder if there is something that allows me to interact with modules to know if their composition has changed compared to the last run. For example that all classes in module X are still the same. I was thinking that the JVM itself would use this kind of information for runtime images, thus maybe there are ways to get this kind of information?
> bye Jochen
You collect this information and generate a special module from it. Then
you build a runtime image composed of modules of original image and that
additional module. This could be performed by a special variant of jlink
- a glink!
More information about the jigsaw-dev