PHP's docs claim that its array is optimized for use as "array, vector hash table, dictionary, collection, stack, queue, and probably more". Is this actually true (The optimized bit)? Or is it still just a pretty ok hash map implementation (also how does dict diff from hash?)
-
-
Replying to @sgrif
Yes, it's pretty decent for all these uses. It's an order-preserving hash table with special case optimizations for use as a numeric/dense array.
1 reply 0 retweets 0 likes -
Replying to @kornelski
Do you have a reference for the optimizations that they do for dense arrays I can look at?
1 reply 0 retweets 0 likes
Replying to @kornelski
Thank you for providing these links, this is exactly what I was looking for.
6:20 PM - 13 Dec 2017
from Albuquerque, NM
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.