2 ms·
JSON.parse is complexity? Just separating your data from your code alone is worth it for the architectural benefits, this would be a net improvement to code qua
by eloff 7y ago
JSON.parse is complexity? Just separating your data from your code alone is worth it for the architectural benefits, this would be a net improvement to code quality. Performance matters, if you have a lot of data like this that can also be a big win.
- Roboprog 7y agoReading the data structure within the string is rather a nuisance, I think. It’s worth noting the caveat that there is a minimum size where this trick has a noticeable effect, though. I understand the original comment’s fear of abuse. Nice to know it’s there for huge data structures though. Huge: we’re talking about a browser, not a database server.