Mögliche Alternative zu in_array bei großen Arrays
Veröffentlicht am 21.8.2006, 02:03 Uhr
http://de2.php.net/manual/de/function.in-array.php#60559
[…]
The non technical explanation is before is you had 100 items and it took you 100 microseconds for in_array with 10 000 items it would take you 10 000 microseconds. while with the second one it would still take you 100 microsecond if you have 100 , 10 000 or 1 000 000 ids.
(the 100 microsecond is just a number pulled out of thin air used to compare and not an actual time it may take)
Thema: Link, PHP
Keine Kommentare - :(
Keine Kommentare - :(Diskussion zum Artikel
Leider ist die Kommentarfunktion zur Zeit deaktiviert.

Zum Artikel Mögliche Alternative zu in_array bei großen Arrays sind noch keine Kommentare vorhanden. Deine Meinung wäre jedoch willkommen!