Skip to content

Conversation

@Gvozd
Copy link
Contributor

@Gvozd Gvozd commented Nov 6, 2021

This PR fixes #133348
reproduce steps: #133348 (comment)

I test my fixes on search in plugins.pkgd.min.js from https://github.com/froala/wysiwyg-editor

before my fixes Open in editor consumed 2671MB
before fix

after first fix consumed 220MB
fix 1

after second fix consumed ~15-30MB
fix 2

Gvozd added 2 commits November 6, 2021 03:49
… - major memory optimization [2671Mb -> 220Mb] [1.9sec -> 1.6sec]

usecase from microsoft#133348 (comment)
file for search - `plugins.pkgd.min.js` from https://github.com/froala/wysiwyg-editor
… - additional memory optimization [220Mb -> 15Mb] [1.6sec -> 2.2sec]

Slightly slower due to gc calls

usecase from microsoft#133348 (comment)
file for search - `plugins.pkgd.min.js` from https://github.com/froala/wysiwyg-editor
@ghost
Copy link

ghost commented Nov 6, 2021

CLA assistant check
All CLA requirements met.

@Gvozd
Copy link
Contributor Author

Gvozd commented Nov 6, 2021

… - performance optimization[2.2sec -> 50ms]

usecase from microsoft#133348 (comment)
file for search - `plugins.pkgd.min.js` from https://github.com/froala/wysiwyg-editor
@Gvozd
Copy link
Contributor Author

Gvozd commented Nov 6, 2021

third commit optimized time performance at x40 times on this usecase - from 2.2sec to ~50ms

@roblourens roblourens assigned JacksonKearl and unassigned roblourens Nov 8, 2021
@JacksonKearl JacksonKearl self-requested a review November 9, 2021 00:21
@JacksonKearl
Copy link
Contributor

So speedy! Thanks for working on this!

@JacksonKearl JacksonKearl added this to the November 2021 milestone Nov 9, 2021
@JacksonKearl JacksonKearl merged commit fdf8f11 into microsoft:main Nov 9, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Dec 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants