From 6e15e696ce016be4d4b2d30a9f140bcf57f7f5e7 Mon Sep 17 00:00:00 2001 From: Majin Bejitto Date: Wed, 21 Dec 2022 03:25:49 -0500 Subject: [PATCH] fix "scandir should not need to sort in b.php (banner code)" scandir by default sorts files in ascending order. this is unnecessary when you're picking a random file anyway. it's just wasting CPU cycles and increasing latency as more files are added. currently it is $files = scandir($dir); it should be $files = scandir($dir, SCANDIR_SORT_NONE); --- b.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b.php b/b.php index f49e5361..541fb1b2 100644 --- a/b.php +++ b/b.php @@ -1,6 +1,6 @@