(D2D) Figure out how to cache gradient brushes?
Open
Nobody has claimed this yet.
perf
piet-direct2d
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
Caching solid color brushes gave large and visible speedups when testing with https://github.com/smmalis37/sudoku_rust. Given that, it's probably worthwhile to cache gradient brushes too. However, gradients are more complicated than a single color, and figuring out a good key for a cache for them may be tricky.
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
The issue names no files, tests, or entry points. Start by tracing the existing solid-color brush caching and determine which gradient properties a cache key must represent; done means gradient brushes are cached correctly and the reported performance benefit is validated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics, performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100