Performance regression rendering blurred image
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 4.1k
- Forks
- 348
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 3
Description
I'm seeing a much larger increase in rendering time from adding a blur filter to an image on v0.33.0 and later than earlier versions
Rendering this svg:
```svg
```
Testing with: `./resvg test.svg test.png --perf` on an M1 Mac
Output on v0.33.0 and later:
```
Reading: 0.07ms
XML Parsing: 1.09ms
SVG Parsing: 3.26ms
Rendering: 1483.98ms
Saving: 17.49ms
```
Output on v0.32.0:
```
Reading: 0.07ms
XML Parsing: 0.27ms
SVG Parsing: 0.54ms
Rendering: 291.64ms
Saving: 18.69ms
```
Removing the filter from the image gives similar performance on both versions (~100ms rendering)
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 reproducing the supplied SVG with the blur filter and comparing rendering time on versions before and after v0.33.0. Trace the rendering path responsible for blurred images and verify the regression is no longer present on the current version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100