145-java-refactoring-high-performance

仓库创建 2025年2月9日最近提交 3 天前SkillHot 收录 21 天前
▸ 精选理由

强调测量优先与证据导向,指导热点路径与分配优化。

这个 Skill 做什么

针对 Java 代码的高性能重构与优化实战规则与流程。

针对 Java 代码做高性能重构,重点是减少内存分配、优化热点路径和改进控制流以提速降延迟。在需要提升吞吐量、降低延时或查找分配/并发瓶颈时用。流程强调先量化再改动,给出 JVM 友好的实操规则和验证方法,不靠感觉式优化。

▸ 展开 SKILL.md 英文原文

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 cursor-rules-java project

开发编程Java性能优化内存/热点通用
423
Stars
89
Forks
40
仓库内 Skill
+9
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/jabrena/plinth/main/skills/145-java-refactoring-high-performance/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/jabrena/plinth/main/skills/145-java-refactoring-high-performance/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Java rules for High Performance

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?**

- Measure-first workflow for Java code optimization
- JVM/runtime-aware coding guidance
- Allocation reduction techniques with bad/good patterns
- CPU hot-path simplification and loop-level efficiency patterns
- Concurrency/backpressure and timeout/cancellation discipline
- I/O, parsing, and serialization efficiency patterns
- Persistence/query and caching strategy guidance
- Java-centric decision workflow: keep/revert base
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有