Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track authors by step rather than transaction #1385

Merged
merged 2 commits into from
Jan 26, 2021

Conversation

juliusknorr
Copy link
Member

Since applying transactions has quite a big performance impact the initial approach of tracking the author in a blame map based on a per transaction level didn't work out well in terms of memory usage and computation time when loading a document with a somehow bigger amount of steps, since before this pr each step would be dispatched as its own transaction.

Now with this we pass through the author information for all steps in one transaction, apply it in one go and build the blame map of authors based on the individual steps.

Should fix the performance and memory usage regression that was reported by @jancborchardt and @jospoortvliet

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr
Copy link
Member Author

Cypress test that failed at the first attempt is known to be somehow unstable

@juliusknorr juliusknorr merged commit b962965 into master Jan 26, 2021
@juliusknorr juliusknorr deleted the bugfix/color-performance branch January 26, 2021 09:52
@rullzer rullzer mentioned this pull request Jan 27, 2021
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants