atom / deprecation-cop

Shows a list of deprecated calls
MIT License
12 stars 19 forks source link

Fix very slow startup caused by getSelectorDeprecationsCount() called many times #54

Closed ypresto closed 9 years ago

ypresto commented 9 years ago

image

updateDeprecatedSelectorCount() enforces rescanning deprecated selectors. This method called so many times by atom.packages callbacks.

This PR debouces it and dramatically (>=1000ms) shorten startup time!

mnquintana commented 9 years ago

/cc @atom/feedback

kevinsawicki commented 9 years ago

Thanks for this :horse_racing: :green_heart: