forked from GithubBackups/vichan
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);
This commit is contained in:
parent
a0f699d49f
commit
23163ae59c
Loading…
x
Reference in New Issue
Block a user