magit / with-editor

Use the Emacsclient as the $EDITOR of child processes
http://magit.vc/manual/with-editor
GNU General Public License v3.0
185 stars 45 forks source link

Limit the maximum length of string saved in process filter; improve performance #104

Closed blahgeek closed 2 years ago

blahgeek commented 2 years ago

While using with vterm, this 'incomplete string may get very large and it hurts performance. In my case, it can easily get to few megabytes after using the same terminal for a long time, which would then increase the latency of each keystroke significantly. We should only need to keep the last few bytes to make it work.

tarsius commented 2 years ago

Thanks!

I made some +cosmetic+ small changes: added a let binding and changed the commit message a bit. [Also changed >= to >.]