peterh / liner

Pure Go line editor with history, inspired by linenoise
MIT License
1.04k stars 132 forks source link

Input is slow #81

Closed Hellsegga closed 7 years ago

Hellsegga commented 8 years ago

Hello,

Thanks for this library. As noticed in this issue on the go-ethereum project, liner is quite slow in processing the input, which is noticeable when pasting large amounts of data. For example pasting 30KB takes up to 1 minute. In comparison linenoise takes a few seconds. Maybe the "refresh" functions could be optimized somehow to speed it up?

peterh commented 7 years ago

Sorry for the slow response.

I had some time to work on liner today. It should be significantly faster on large input now. Please update liner and let me know.