pullcord icon indicating copy to clipboard operation
pullcord copied to clipboard

LastMessageID now reads from the front of the file backwards, not back to front

Open Bjohnson131 opened this issue 9 months ago • 0 comments

I noticed that each time pullcord restarts, it reads an entire file from the start to finish to find the last ID.

This is bad, as TSV files can be very long, and reading an entire file can be very time consuming.

To remedy this, I made a scanner that scans files from front to back, and so the number of bytes read from the disk is reduced drastically.

Bjohnson131 avatar Aug 30 '23 23:08 Bjohnson131