lukejacksonn / lukejacksonn/oceanwind
memoize process calls?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 264
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Hey awesome project! I think that `process` invocations could be memoized in https://github.com/lukejacksonn/oceanwind/blob/master/index.js (a simple strict equality check would do it) - this way you don't have to `translate` all the time.
Although the switch is super cheap so probably this optimization is unnecessary 🙈
Contributor guide
No contributing guide indexed for this repository
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 in index.js at the process invocation and inspect how translate is called. Check the existing project checks, if available, and verify that repeated identical process inputs avoid unnecessary translation without changing output; also determine whether the proposed optimization is warranted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- performance, tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100