Y
Hacker News
new
|
ask
|
show
|
jobs
by
xiphias2
2716 days ago
After I implemented this and compared with just encoding the key with JSON, it turned out that JSON.stringify is so fast, that it's not really worth the effort.
1 comments
univerio
2716 days ago
Unfortunately JSON.stringify makes no guarantees about the order of keys in an Object, so that can break in subtle ways.
link
xiphias2
2716 days ago
Aha, that's true. I wasn't using hash maps when I did this, but what you write makes sense.
link