implement a simple text cache
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 463
- PR merge metrics
- No merged PRs in 30d
Description
ctx.fillText() is quite expensive and shows prominently in streaming profiles. given that axis labels & tick text change infrequently, and are of a uniform height, i think we can make a simple cache atlas with e.g. 100 uniform 16px x 100px slots to reuse pre-rendered axis values. would need some kind of LRU eviction policy.
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 by locating the axis-label and tick-text rendering paths that call ctx.fillText(), then measure their role in streaming profiles. Define the cache atlas dimensions, reuse behavior, and LRU eviction requirements; the work is done when repeated axis values avoid unnecessary text rendering without changing displayed labels.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization, performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100