Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #15917
| From | James Harris <james.harris.1@gmail.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Fast PHP way to find a file given the leftmost characters of the file name |
| Date | 2015-12-08 11:45 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <n46fop$6f8$1@dont-email.me> (permalink) |
| References | <n3v7c9$ko9$1@dont-email.me> <n3vbbr$4eh$1@speranza.aioe.org> <87egf0k7bd.fsf@ahungry.com> <n400kf$nuq$1@dont-email.me> <87a8pmkfb1.fsf@ahungry.com> |
On 07/12/2015 05:17, Matthew Carter wrote: > James Harris <james.harris.1@gmail.com> writes: > >> On 05/12/2015 19:45, Matthew Carter wrote: ... >>> FWIW, I just tested in a directory with 50,000 files on a system with >>> 1.5G RAM (and non-SD disk) and was able to get 190 matches when >>> specifying the first 2 letters in 0.103 seconds using >>> glob($letters.'*'), as well as similar results when specifying all the >>> way to a single unique name. >> >> Thanks. Was that with GLOB_NOSORT included? > Just the default glob call (I didn't make any optimization attempts, > just wanted to get a general idea for myself). Sure. Was just thinking that, depending on implementation, it may/should be faster as it omits the sort step. James
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread
Fast PHP way to find a file given the leftmost characters of the file name James Harris <james.harris.1@gmail.com> - 2015-12-05 17:39 +0000
Re: Fast PHP way to find a file given the leftmost characters of the file name Arno Welzel <usenet@arnowelzel.de> - 2015-12-05 19:37 +0100
Re: Fast PHP way to find a file given the leftmost characters of the file name Markus Heinz <markus.heinz@uni-dortmund.de> - 2015-12-05 19:45 +0100
Re: Fast PHP way to find a file given the leftmost characters of the file name Matthew Carter <m@ahungry.com> - 2015-12-05 14:45 -0500
Re: Fast PHP way to find a file given the leftmost characters of the file name Jerry Stuckle <jstucklex@attglobal.net> - 2015-12-05 15:53 -0500
Re: Fast PHP way to find a file given the leftmost characters of the file name James Harris <james.harris.1@gmail.com> - 2015-12-06 00:50 +0000
Re: Fast PHP way to find a file given the leftmost characters of the file name Matthew Carter <m@ahungry.com> - 2015-12-07 00:17 -0500
Re: Fast PHP way to find a file given the leftmost characters of the file name James Harris <james.harris.1@gmail.com> - 2015-12-08 11:45 +0000
csiph-web