vue3-core/packages
Evan You 3be53d9b97 perf(codegen): optimize line / column calculation during codegen
Previously, many CodegenContext.push() calls were unnecessarily
iterating through the entire pushed string to find newlines, when we
already know the newline positions for most of calls. Providing fast
paths for these calls significantly improves codegen performance when
source map is needed.

In benchmarks, this PR improves full SFC compilation performance by ~6%.
2023-11-25 16:18:29 +08:00
..
compiler-core perf(codegen): optimize line / column calculation during codegen 2023-11-25 16:18:29 +08:00
compiler-dom wip: support reusing template ast from sfc descriptor 2023-11-25 16:18:29 +08:00
compiler-sfc perf(compiler-sfc): remove magic-string trim on script 2023-11-25 16:18:29 +08:00
compiler-ssr wip: pass all compiler-ssr tests 2023-11-25 16:18:29 +08:00
dts-built-test chore: exclude private packages from version updates 2023-11-21 09:37:37 +08:00
dts-test feat!: remove reactivity transform (#9321) 2023-11-21 18:06:42 +08:00
reactivity chore: Merge branch 'main' into minor 2023-11-21 09:48:26 +08:00
runtime-core test: fix keepalive transition out-in test case 2023-11-21 17:57:44 +08:00
runtime-dom chore: Merge branch 'main' into minor 2023-11-21 09:48:26 +08:00
runtime-test chore: exclude private packages from version updates 2023-11-21 09:37:37 +08:00
server-renderer chore: Merge branch 'main' into minor 2023-11-21 09:48:26 +08:00
sfc-playground feat!: remove reactivity transform (#9321) 2023-11-21 18:06:42 +08:00
shared perf: optimize makeMap 2023-11-25 16:18:29 +08:00
template-explorer chore: exclude private packages from version updates 2023-11-21 09:37:37 +08:00
vue refactor: swap to new template parser 2023-11-25 16:18:29 +08:00
vue-compat wip: parser v2 compat 2023-11-25 16:18:29 +08:00
global.d.ts chore: use moduleResolution: bundler + shim estree-walker 2023-06-23 08:54:25 +08:00