luckyframework / luckyframework/wordsmith

Optimize methods

Open
#30 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.