4 ms·
I'd be surprised if there is a performance benefit of processing json with eval(). Browsers optimize the heck out of JSON.
by bawolff 8mo ago
I'd be surprised if there is a performance benefit of processing json with eval(). Browsers optimize the heck out of JSON.
- fhars 8mo agoYou are arguing against the opposite of what the comment you answered to said.
- bawolff 8mo agoAm i? "Can you think of any reasons beyond performance?" implies that the comment author thinks performance would be a valid reason.
- _flux 8mo agoQuoting my original message: > And why do we not anymore make use of it, but instead implemented separate JSON loading functionality in JavaScript? In other words: I'm asking for reasons why was native JSON JavaScript module created, if we already had eval. > Can you think of any reasons beyond performance? One of the reasons is that native JSON parser is faster than eval: give some other reason.