3 ms·
> some sort of memoized JSON.parse in order to get the best of both worlds? Could that actually work in practice? Probably not, because the kind of object lite
by vanderZwan 7y ago
> some sort of memoized JSON.parse in order to get the best of both worlds? Could that actually work in practice?
Probably not, because the kind of object literals that can be converted to JSON.parse are the kind where you have different objects with the same shape, whereas reusing a memoized object would result in multiple references to the same object.
EDIT: wait nvm, that's what you addressed with your edit.