Subj : TgM: order of posts from a backlog
To   : Stas Mishchenkov
From : Wilfred van Velzen
Date : Fri Nov 13 2020 10:13 am

SM> Hi, Wilfred!
SM>
SM> 10 ��� 20 14:14, Wilfred van Velzen -> Stas Mishchenkov:
SM>
SM> SM>> On the other hand, sorting packages by date before tossing can
SM> SM>> significantly increase processing time.
SM>
SM> WvV> Maybe if you have a thousand or more packages to sort, otherwise I
SM> WvV> wouldn't worry about it... ;)
SM>
SM> Take a look:
SM>
SM> opendir();
SM> do while readdir() {
SM>        readpkt();
SM> }
SM> closedir();
SM>
SM> or it will be
SM>
SM> opendir();
SM> do while readdir() {
SM>        collect_names();
SM> }
SM> closedir();
SM> sort_names();
SM> for $name (@names) {
SM>        readpkt();
SM> }
SM>
SM> Have nice nights.
SM>       Stas Mishchenkov.

So it would take a few micro seconds longer... ?

--- tg BBS v0.6.2
* Origin: Fido by Telegram BBS by Stas Mishchenkov (2:460/58)