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

[CLOSED] improvements to file system events processing for search #10970

Open
core-ai-bot opened this issue Aug 30, 2021 · 6 comments
Open

[CLOSED] improvements to file system events processing for search #10970

core-ai-bot opened this issue Aug 30, 2021 · 6 comments

Comments

@core-ai-bot
Copy link
Member

Issue by zaggino
Wednesday Nov 09, 2016 at 05:16 GMT
Originally opened as adobe/brackets#12885


Hi guys, I've reported elsewhere that my db dump script crashes both brackets (white-screen) and also brackets-electron. This is the work done to fix that (and I can confirm that with this fix there's no crash when running my script anymore) - it's not final and I'd like to have it reviewed before working on little things as docs and similar.

There're two main things, first aggregate duplicate events and debounce for a short while before processing. My script quickly deletes and creates back a lot of stuff, before this change some of the directories were removed and added back to search multiple times. With debouncing it's only once after script is done.

Second, no less important thing is fixing calls to filesChanged and filesRemoved functions. In case of my script these two were called about 1000 times with an array of size 1 which cause a lot of trouble for IPC connection in electron and socket connection in regular brackets. With the fix these are now properly called.

Marking this as high-priority because it fixes brackets completely crashing in some cases.


zaggino included the following code: https://github.com/adobe/brackets/pull/12885/commits

@core-ai-bot
Copy link
Member Author

Comment by petetnt
Wednesday Nov 09, 2016 at 22:46 GMT


Should avoid doing code reviews when I am tired 😴 👍

Nice work@zaggino

@core-ai-bot
Copy link
Member Author

Comment by ficristo
Saturday Nov 12, 2016 at 09:09 GMT


Nice work@zaggino

👍

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Monday Nov 14, 2016 at 03:16 GMT


Pushed some changes,@petetnt@ficristo please review again :-)

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Thursday Nov 17, 2016 at 00:49 GMT


@petetnt anything else? if not it should be good to merge

@core-ai-bot
Copy link
Member Author

Comment by petetnt
Thursday Nov 17, 2016 at 08:45 GMT


@zaggino LGTM, I'll run this in production use for today and merge it in if nothing pops up.

@core-ai-bot
Copy link
Member Author

Comment by petetnt
Thursday Nov 17, 2016 at 16:41 GMT


Used it all day without any issues and Brackets did feel snappier. Great job once again@zaggino!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant