escape-analysis
CommunityOptimize memory and concurrency.
Software Engineering#performance#optimization#memory management#compiler#escape analysis#stack allocation
Authorrainoftime
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill identifies objects that can be safely allocated on the stack instead of the heap, leading to significant performance improvements by reducing garbage collection pressure and enabling further optimizations.
Core Features & Use Cases
- Stack Allocation: Enables allocating objects on the stack for faster allocation and deallocation.
- Lock Elision: Optimizes synchronized code by removing unnecessary locks for objects that do not escape.
- Scalar Replacement: Replaces objects with their individual fields as scalar variables, reducing object overhead.
- Use Case: Improve the performance of a Java application by enabling the Just-In-Time compiler to stack-allocate frequently created, short-lived objects, thereby reducing garbage collection pauses.
Quick Start
Analyze the provided Java code to identify objects that do not escape their scope and can be stack-allocated.
Dependency Matrix
Required Modules
alias-and-points-to-analysisinterprocedural-analysis
Components
referencesscripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: escape-analysis Download link: https://github.com/rainoftime/pl-skills/archive/main.zip#escape-analysis Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.