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

In practice, most js engines these days can ‘recognise’ the ‘class’ of these objects (if you create them from scratch in a few places) and the memory representation would end up with a word for the ‘class’ which says that time is at field 0 and price at 1 and volume at 2, and then the data itself. The main reason is to speed up code that reads the fields rather than memory use.


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

Search: