linebender / linebender/piet

(D2D) Figure out how to cache gradient brushes?

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

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.