Commit c65151a
Make jar tool acquisition lazy
Performance improvement for warm cache scenarios:
**Problem:** The baseline jar tool (Java 11 via cjdk) was being acquired
on every run, even when all JARs hit the metadata cache and the tool was
never needed.
**Solution:** Implement lazy evaluation using a closure-based approach.
The jar tool is now only acquired when there's a cache miss and we need
to classify a non-modular JAR.
**Performance gain:** Skips expensive Java locator call when cache is warm
(100% cache hit rate).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent 2980253 commit c65151a
1 file changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
718 | 727 | | |
719 | 728 | | |
720 | 729 | | |
| |||
728 | 737 | | |
729 | 738 | | |
730 | 739 | | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
731 | 743 | | |
732 | 744 | | |
733 | 745 | | |
| |||
760 | 772 | | |
761 | 773 | | |
762 | 774 | | |
763 | | - | |
| 775 | + | |
764 | 776 | | |
765 | 777 | | |
766 | 778 | | |
767 | | - | |
| 779 | + | |
768 | 780 | | |
769 | 781 | | |
770 | 782 | | |
| |||
0 commit comments