feat: 50% less image memory (?) #1527
Closed
MentalGear
started this conversation in
Ideas
Replies: 1 comment
-
It looks like you can do it by yourself. Instead of using an instance of image for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Chrome Blog mentioned that loading Imgs in HTML and then in canvas loads the image double in memory.
If this is true, it would be good to release the image from HTML/JS once the canvas/Konva has it loaded, by setting the image to null.
It doesn't seem like konva does this yet, so adding a simple img = null after load could yield a 50% better image memory performance.
konva/src/shapes/Image.ts
Line 43 in 888fbf3
If you concur I can setup a PR.
Beta Was this translation helpful? Give feedback.
All reactions