You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I read a blogpost by @tomdale. It states that JSON.parse is faster by 18x than eval. When we evaluate our script with ISTF, it is basically an eval I assume.
As in our format, the only pure JS part is functions, we can put them into a separate array, stringify everything else and JSON.parse at runtime. Lets see if this can yeld any reasonable perf improvements for us.
Alternatively we can also try Array#join and Array#split, as we have no objects.
Today I read a blogpost by @tomdale. It states that JSON.parse is faster by 18x than eval. When we evaluate our script with ISTF, it is basically an eval I assume.
As in our format, the only pure JS part is functions, we can put them into a separate array, stringify everything else and JSON.parse at runtime. Lets see if this can yeld any reasonable perf improvements for us.
Alternatively we can also try Array#join and Array#split, as we have no objects.
Also see #22 and #19
The text was updated successfully, but these errors were encountered: