Use a faster hash function
- Dominant language
- JavaScript
- Stars
- 284
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
We probably don't need to be using something that's cryptographically secure (i.e., SHA-1). Instead, we could opt for a faster hash function (like Murmur) or use a checksum (like Adler-32 or CRC32).
For example, React uses Adler-32 to verify that server-generated markup matches client-generated markup (for server-side rendering).
Contributor guide
No contributing guide indexed for this repository
Research direction
No files, tests, or entry points are named. Start by locating where SHA-1 is used for generated CSS class hashing, then compare the proposed Murmur, Adler-32, and CRC32 alternatives against the required matching behavior and define completion around preserving correctness with a faster choice.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- performance
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100