Skip to content

133348 fix oom when search opened in editor - #136554

Merged
Jackson Kearl (JacksonKearl) merged 3 commits into
microsoft:mainfrom
Gvozd:133348-fix_OOM_when_search_opened_in_editor
Nov 9, 2021
Merged

Jackson Kearl (JacksonKearl) merged 3 commits into
microsoft:mainfrom
Gvozd:133348-fix_OOM_when_search_opened_in_editor

Conversation

@Gvozd

@Gvozd Gvozd (Gvozd) commented Nov 6, 2021 •

Copy link
Copy Markdown
Contributor

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

… - 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

Deleted user (ghost) commented Nov 6, 2021 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@Gvozd

Copy link
Copy Markdown
Contributor Author

existed tests passed - https://github.com/Gvozd/vscode/actions/runs/1427942500

… - 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
Copy Markdown
Contributor Author

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

@JacksonKearl

Copy link
Copy Markdown
Contributor

So speedy! Thanks for working on this!

@JacksonKearl
Jackson Kearl (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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consistent OOM Crash while searching short string

3 participants