Optimization: Instance Layerset extraction - #58
Merged
Merged
Conversation
kalisp
self-requested a review
February 4, 2026 13:25
…o refactor/optim_extract_image
…ix4/ayon-photoshop into refactor/optim_extract_image
kalisp
approved these changes
Feb 16, 2026
kalisp
left a comment
Member
There was a problem hiding this comment.
Seems to be working fine, asked @LiborBatek for additional testing.
…o refactor/optim_extract_image
Member
|
Retested with more complex psd and after merge. |
Member
|
@Tilix4 @kalisp it works nicely and really well... I have found only one edge case and its questionable still whether its a malfunction or not but when I have group marked for publishing and remove layer which was inside so the group becomes empty in fact it still publishes and is not skipped. Minor thing but putting it here for the record... maybe its even to suppose to publish still as Im not sure really. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog Description
Optimized image extraction performance in Photoshop by implementing batch layer visibility operations. The extractor now uses a single batch call to show/hide multiple layers instead of individual calls, significantly reducing WebSocket overhead. A new reusable context manager ensures proper isolation of publishable instances by automatically hiding sibling layers at all hierarchy levels.
Additional review information
Testing notes:
NB: The image used for the review is extracted on its own (during a step I find very strange - this is another story), do not rely on it to check the output of the image, but the one actually published