Mögliche Alternative zu in_array bei großen Arrays

Published 2006-08-21, 02:03

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)

Topic(s): Link, PHP No comments - :(

Diskussion zum Artikel

» Selbst kommentieren

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

Selbst kommentieren

Trackback-URI, Kommentarfeed. XML-Feed





17 queries. 0,232 seconds.