Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update workflow installation, optimize caching, and refactor folded content handling #214

Merged
merged 4 commits into from
Nov 26, 2024

Conversation

yangbobo2021
Copy link
Contributor

This PR includes several improvements and optimizations:

  1. Enhanced workflow installation:
  • Improved installation logic with version checks
  • Modified copyResourceDirToPath to support overwriting
  • Refined log event request handling in Agent class
  1. Optimized cache management in IDEUtils:
  • Reduced MAX_CACHE_SIZE from 1000 to 100
  • Introduced MAX_FOLD_CACHE_SIZE constant set to 100
  • Replaced ConcurrentHashMap with LinkedHashMap for foldCache
  1. Implemented LRU cache for folded content:
  • Replaced ConcurrentHashMap with LinkedHashMap for foldedContentCache
  • Set maximum cache size to 10 entries
  • Implemented removeEldestEntry to maintain LRU behavior
  1. Updated submodules

These changes aim to improve performance and resource management in the application.

- Reduce MAX_CACHE_SIZE from 1000 to 100
- Introduce MAX_FOLD_CACHE_SIZE constant set to 100
- Replace ConcurrentHashMap with LinkedHashMap for foldCache
- Replace ConcurrentHashMap with LinkedHashMap for foldedContentCache
- Set maximum cache size to 10 entries
- Implement removeEldestEntry to maintain LRU behavior
- Enhance workflow installation logic with version checks
- Modify copyResourceDirToPath to support overwriting
- Refine log event request handling in Agent class
@kagami-l kagami-l merged commit 7edfc61 into main Nov 26, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants