Can you foresee any problems with automatically deleting the
blacklist.txt file, say monthly, to keep it from growing too big? Can
this cause Mystic to slow down having to scan such a large file as it
gets bigger? Would it help to manually sort the file occasionally as
well?
There shouldn't be any problems with deleting the blacklist.txt file whenever you feel its needed. As far as sorting the list, I do not believe it would give any noticable benefit.
To answer the large file question: I did a little test out of curiosity:
On my laptop it takes Mystic an average of 70 milliseconds to compare an incoming IP against 1 million blacklisted IP addresses. My laptop has an SSD drive and has a high end 8750H processor as its my main computer (I don't own a desktop) so its pretty fast... significantly faster than a Pi thats for sure.
But 70ms per 1 million records is pretty fast, and when I dropped it down from 1 million records to a more realistic 1000 records it dropped all the way down to 0 milliseconds. It was so fast that I would need a nanosecond to measure!
On my hardware it doesn't slow down Mystic enough for our brains to even
notice it happening. Performance varies so greatly between hardware but it doesn't feel like it'd be something that noticably slows down your BBS.
--- Mystic BBS v1.12 A43 2019/02/08 (Linux/64)
* Origin: Sector 7 (21:1/108)