copilot-emacs / copilot.el

An unofficial Copilot plugin for Emacs.
MIT License
1.79k stars 126 forks source link

Disable event logging by default to improve performance #125

Closed blahgeek closed 1 year ago

blahgeek commented 1 year ago

During profiling, I found that the event logging (which was enabled by default) actually takes the majority of the CPU time (in the image below, 13% of 18%. I'm using native-comp version of latest emacs):

2023-04-17_00-24

I could definitely feel the difference after disabling the event logging. No more perceivable input latency anymore.

For better out-of-the-box user experience, I think it would be good to disable event logging by default.