mirror of https://github.com/vuejs/core.git
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%. |
||
---|---|---|
.. | ||
__tests__ | ||
src | ||
LICENSE | ||
README.md | ||
index.js | ||
package.json |