vue3-core/packages/compiler-core
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
..
__tests__ chore: document rationale for ignoring some parsing errors 2023-11-25 16:18:29 +08:00
src perf(codegen): optimize line / column calculation during codegen 2023-11-25 16:18:29 +08:00
LICENSE chore: license 2019-10-28 11:15:17 -04:00
README.md refactor: rename packages 2018-10-26 15:44:50 -04:00
index.js refactor: rename packages 2018-10-26 15:44:50 -04:00
package.json wip: setup 2023-11-25 16:18:29 +08:00

README.md

@vue/compiler-core