luckyframework / luckyframework/wordsmith
Optimize methods
Nobody has claimed this yet.
- Dominant language
- Crystal
- Stars
- 15
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
Methods like `underscore`, for example, uses a ton of regex and multiple string allocations. I bet we might be able to see some nice performance just by optimizing a few of these methods and taking advantage of stuff that Crystal has added over the years since this was first written.
I'd recommend https://github.com/luckyframework/wordsmith/issues/27 get completed first before anyone attempt to take this on just so we're not doing double work.
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
Review issue #27 first to avoid duplicating work, then inspect the implementation of underscore and the other methods using substantial regex and string allocation. Identify a focused set of methods to optimize and define done as measurable performance improvement without changing their behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- crystal
- Domain
- performance
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100