lectrote icon indicating copy to clipboard operation
lectrote copied to clipboard

Files need to be less aggressively output buffered

Open curiousdannii opened this issue 7 years ago • 3 comments

Lectrote is currently heavily buffering output to data files.

On Ubuntu it seems to flush every 256 bytes. On Windows it seems to write out 4Kb blocks, but only when you quit Lectrote.

In neither OS will it flush the buffer when you quit (so if your command file doesn't reach 4Kb in Windows nothing will be recorded.) Neither do they flush the buffer after a certain amount of time.

It is of course essential that all the data actually gets written. As long as it does that the method of buffering doesn't matter, but from my user's perspective, I'd prefer a time based approach rather than a data length approach. (Or Lectrote could not bother buffering and let the OS handle it.)

curiousdannii avatar Jan 20 '17 11:01 curiousdannii