Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It depends. Bare hash tables are semi-random and get reshuffled at growth points naturally. But I remember reading in some manual that that language reshuffles iteration even for immutable hash tables. Js objects are usually based on "shapes", which do not follow hash table semantics:

https://mathiasbynens.be/notes/shapes-ics

https://v8.dev/blog/fast-properties



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: