Performance improvement, faster

1. Virtual DOM rewriting

Expect more compile-time prompts to reduce runtime overhead, and more efficient code to create virtual node component fast paths + single calls + child node type detection

  1. Skip unnecessary conditional branches
  2. JS engines are easier to optimize

2. Optimize the generation of slots

Vue3 can re-render parent and child levels separately

  1. Ensure that the instance tracks dependencies correctly
  2. Avoid unnecessary parent/child component rerendering

Static tree promotion

Memory for time, static nodes are stored in variables and marked ‘static’

4. Static attribute promotion

Memory swap time, same as above

5. Response system based on proxy

Component instance initialization speed increased by 100% using Proxy to save half of the previous memory overhead, speed up, but there is a low browser version incompatible abandon IE

smaller

Tree shaking optimizes core library volume

Better to maintain

TS, modularization

More friendly

Cross-platform, compiler core and runtime core are platform independent, making VUE easier to adapt to any platform

Easier to use

Improved TS support, editor to provide type checking and error and warning better debugging support for independent responsive module composition API