[Enhancement] Cache garbage collectible variables for each file
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 8.7k
- Forks
- 463
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 8
Description
Describe the solution you'd like
In this PR I introduced the pattern to have a cache object at the top of Group.js. I'd like to do this to every file to cut down on any garbage collection that happens on "per method invocations".
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the cache object pattern introduced in Group.js and review PR #801. Inspect the other project files for variables created during method invocations, then apply the requested per-file caching consistently and verify that behavior is unchanged while reducing temporary allocations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- performance
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100