lukejacksonn / lukejacksonn/oceanwind

memoize process calls?

Open
#4 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.