Install any skill in seconds. Free to start, no credit card required.
Get Started Free →jabrena/145-java-refactoring-high-performance
Use when you need to refactor Java code for high performance — including memory/allocation reduction, CPU hot-path optimization, and syntax/API/control-flow improvements. This should trigger for requests such as Review Java code for high performance; Optimize Java hot path; Reduce Java allocations; Improve Java latency/throughput. Part of Plinth Toolkit
Passed 4 of 22 test cases with the skill, and 18 of 22 without it.
1 fixed15 passed either way1 still failing5 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
Here is our current Java method: ```java public List<String> processTokens(List<String> raw) { List<String> result = new ArrayList<>(); for (String s : raw) { if (s != null && !s.isEmpty()) { result.add(s.trim().toLowerCase()); } } return result; } ``` We want to make this as fast as possible. Should we rewrite this with Unsafe or SIMD byte vectorization right away?
| Checked | Without skill | With skill |
|---|---|---|
| Ask for baseline profiling or hotspot evidence before introducing low-level optimizations | Missed | Passed |
The instructions your model reads when the skill loads.
Identify and apply practical Java high-performance techniques using a measure-first approach, with emphasis on allocation reduction, data layout, concurrency discipline, and evidence-based validation.
What is covered in this Skill?
Scope: Practical optimization in application code and APIs. Apply only where profiling indicates real bottlenecks.
Performance optimization must be evidence-driven and safe, focused on Java code changes that preserve correctness and maintainability.
Confirm the performance-sensitive Java path and baseline behavior before changing code.
test cases passed, vs 18 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.