Skip to content

Conversation

@Ayush2k02
Copy link
Contributor

Second approach for fixing this bug . Will be tested and benchmarked against #3539 to see if this is better

Closes #3533

@TrueDoctor
Copy link
Member

Alright, I've now pushed another suggestion. If the perf of this is acceptable, I think this is going to be the simplest solution which is hopefully also relatively easy to maintain. @0HyperCube thoughts?

@Ayush2k02
Copy link
Contributor Author

This is so much more cleaner , wow

Copy link
Contributor

@0HyperCube 0HyperCube left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me.

@Ayush2k02
Copy link
Contributor Author

Let me know if there is something which could be done from my side

@TrueDoctor
Copy link
Member

@Ayush2k02 Could you incorporate hypercubes suggestion and replace the match with a call to or_insert_with ?

@Ayush2k02
Copy link
Contributor Author

Okay, let me take a look

@Ayush2k02
Copy link
Contributor Author

Done !

@Ayush2k02
Copy link
Contributor Author

Screen.Recording.2026-01-04.at.6.38.51.AM.mov

Some manual testing

@TrueDoctor TrueDoctor changed the title fix: rasterize node document leakage with hashmap and eq check Fix rasterize node document leakage with hashmap and eq check Jan 4, 2026
@TrueDoctor TrueDoctor enabled auto-merge (squash) January 4, 2026 11:12
@TrueDoctor TrueDoctor merged commit 42440c0 into GraphiteEditor:master Jan 4, 2026
4 checks passed
@Ayush2k02
Copy link
Contributor Author

Ayush2k02 commented Jan 4, 2026

Screenshot 2026-01-04 at 5 11 31 PM

YAY !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rasterize node: the rasterized image is leaking from one document to another

3 participants