Automattic / Automattic/node-canvas
Optimize Canvas dimension changes
Open
performance
- Dominant language
- JavaScript
- Stars
- 10.7k
- Forks
- 1.2k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 1
Description
I would imagine if you alter the width or height, you most likely will set both, either way we could/should optimize for this case since this requires two allocations ATM
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the implementation that handles Canvas width and height changes and trace how allocations are performed. Reproduce changing both dimensions, then verify that the optimized path performs one allocation while preserving the resulting canvas dimensions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- computer-graphics
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100