How about remove this whole 'JSON parsing' thing. As far as I seen, It's doable.
On Fri, Mar 10, 2017 at 5:35 PM, Adam Feng <[email protected]> wrote: > Maybe it’s a good idea, mixing up all the dom APIs into `callNative` > always takes extra time to do JSON parsing. > > On 2017年3月10日 +0800 PM3:36, 大诗胸 <[email protected]>, wrote: > > Can you explain the reason why API change will cause performance > > improvement? > > > > On Fri, Mar 10, 2017 at 2:26 PM, Hanks Zhang <[email protected]> > wrote: > > > > > As we discussed before, we should support all top-level DOM operation > APIs > > > directly to improve the performance. I have already achieved it in Weex > > > runtime, include the following methods: > > > > > > Format: TAKS -> METHOD > > > > > > * createBody -> callCreateBody > > > * addElement -> callAddElement > > > * removeElement -> callRemoveElement > > > * moveElement -> callMoveElement > > > * updateAttrs -> callUpdateAttrs > > > * updateStyle -> callUpdateStyle > > > * addEvent -> callAddEvent > > > * removeEvent -> callRemoveEvent > > > > > > Our legacy js framework (known as .we) already support this feature. > > > *However, > > > the Vue 2.0 should also support the corresponding feature as well.* > > > > > > > > > > > -- > > sospartan > > Phone:13588488290 > > HangZhou > -- sospartan Phone:13588488290 HangZhou
