@movq@www.uninformativ.de
When I look in my twtxt maildir for duplicated messages they all have F
in their name.
I see that in mail_file_exists
jenny does not consider flagged messages when testing if a message already exists.
I understand that looking up only 12 combinations is faster than reading huge directories. I’m astonished that globbing would be slower. Learning something new every day…
↳
In-reply-to
»
@movq
When I look in my twtxt maildir for duplicated messages they all have
⤋ Read More
F
in their name.
(#el7d3ja) I believe
glob ()
is anO(n)
algorithm
Yes, I see. But don’t underestimate OS caching for files and directories!
If you look up files in the same directory many times then OS may use cached results from earlier lookups.
I’m not totally sure but I believe this is how things work for both, Windows and Linux at least.