wakatime / sublime-wakatime

Sublime Text 2 & 3 plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/sublime-text
BSD 3-Clause "New" or "Revised" License
526 stars 45 forks source link

overall slowliness #3

Closed cmpscabral closed 11 years ago

cmpscabral commented 11 years ago

After installing the plugin, ST performance is greatly reduced when searching for files in project or strings in files.

Also, I get the occasionally prompt for "Plugin too slow".

kans commented 11 years ago

I believe this is because you Popen a new python process that just does a HTTP request on any modification or view event. This seems like overkill?

https://github.com/wakatime/sublime-wakatime/blob/master/sublime-wakatime.py#L64

miketucker commented 11 years ago

having the same issue, only noticeable while searching documents

alanhamlett commented 11 years ago

This issue should be resolved with d3d4a65538af5ad6ce2b899f199992848b0861ee and 9d216264598601e3e2a622f03b5e3f8a944d3928

Actions were being sent to the api on every search character that was typed. Also, actions were being sent on_selection_modified which happens more frequently than the now used on_modified event.

cmpscabral commented 11 years ago

working much better now :) thanks