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

Just guessing, but it looks like jsonlite relies on the uniqueness property of UUIDs to 'guarantee' uniqueness in what amounts to it's primary-key index, the index of ids.

User-defined keys would need to be checked against all existing keys before inserting, to ensure uniqueness. Not impossible, but potentially much slower.



Correct, this all works, because we assume the UUID is globally unique, thus a read is a O(1) operation.




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

Search: