mbest / knockout

My enhancements to Knockout
35 stars 4 forks source link

Performance of binding parsing #14

Closed mbest closed 12 years ago

mbest commented 12 years ago

Today I updated bindingExpressionRewriting.parseObjectLiteral with a completely new implementation based on json_sans_eval. It's faster and smaller than the old one. For reference, here are the jsPerf tests that I used while working on this:

http://jsperf.com/knockout-parse-json/3 http://jsperf.com/knockout-parse-json/5 http://jsperf.com/knockout-binding-string-access/2

SharpNoiZy commented 12 years ago

When will you release a Beta 4 with this nice performence boost?

mbest commented 12 years ago

There are a few other things I'm working on; so maybe a week or so.

mbest commented 12 years ago

I uploaded a beta 4 now. It also includes a faster algorithm for compareArrays that includes move detection

SharpNoiZy commented 12 years ago

Great! Do you know, when your work will flow into the "normal" Knockout Repository?