]> git.ipfire.org Git - thirdparty/vuejs/core.git/commit
perf(vapor): improve component instantiation by using class
authorEvan You <evan@vuejs.org>
Sun, 1 Dec 2024 08:41:51 +0000 (16:41 +0800)
committerEvan You <evan@vuejs.org>
Sun, 1 Dec 2024 08:45:29 +0000 (16:45 +0800)
commit842f94cc73c721e6a029c5e1bc6b61d0e7b4a6be
treed9dbdb9bd366c7c22c2e76ee1ba7e88326e70429
parentf0361bafbbbd7d24b90b1cf72654f92cba895a82
perf(vapor): improve component instantiation by using class

Mounting 10k components went from ~100ms to ~60ms with this change.
packages/runtime-vapor/src/apiCreateComponent.ts
packages/runtime-vapor/src/apiCreateFor.ts
packages/runtime-vapor/src/apiCreateVaporApp.ts
packages/runtime-vapor/src/apiRender.ts
packages/runtime-vapor/src/block.ts
packages/runtime-vapor/src/component.ts
packages/runtime-vapor/src/componentLifecycle.ts
packages/runtime-vapor/src/index.ts