Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Harmony: publishing performance issues #408

Merged
merged 2 commits into from
Aug 4, 2020

Conversation

antirotor
Copy link
Member

Bug

When publishing workfiles from Harmony, publishing process could be stuck for minutes (or would time out after 2 is timeout limit wasn't changed). This was because copyPase.pasteNewNode(...) creating tons of undo/redo points. This PR is merging whole extract template operation as one item for undo/redo system, dramatically reducing publishing speed to seconds.

@antirotor antirotor added type: bug Something isn't working HIGH host: Harmony labels Aug 2, 2020
@antirotor antirotor requested a review from a team August 2, 2020 21:14
@antirotor antirotor self-assigned this Aug 2, 2020
@mkolar
Copy link
Member

mkolar commented Aug 3, 2020

Even though this makes it much faster, it also makes the resulting .tpl files empty :). So I'll call it a half-success.

We'll need to figure out why that is happening before merging of course

@antirotor
Copy link
Member Author

This should work better. It is almost the same as original one, but it is using Action.perform("copy()") and Action.perform("paste()") to copy nodes.

Copy link
Member

@mkolar mkolar left a comment

Choose a reason for hiding this comment

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

looking good and much much faster

@mkolar mkolar added this to the 2.12 milestone Aug 4, 2020
@mkolar mkolar merged commit 52bb816 into master Aug 4, 2020
@mkolar mkolar deleted the hotfix/performance-of-template-extraction branch September 9, 2020 16:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
host: Harmony type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants