oxc/crates
overlookmotel b7f5c63833
perf(codegen): speed up generating sourcemap mappings (#2597)
This PR optimizes the `update_generated_line_and_column` function used in generating source maps.

The main change is that `generated_column` only depends on the last line, so just spin through bytes to find the last line break, and then only convert last line UTF-8 to UTF-16. There's also a fast path for when last line is ASCII, to avoid iterating over the last line twice in that common case.
2024-03-04 12:46:32 +08:00
..
oxc Publish crates v0.8.0 2024-02-26 19:01:51 +08:00
oxc_allocator Publish crates v0.8.0 2024-02-26 19:01:51 +08:00
oxc_ast fix(ast)!: align TSImportType with ESTree (#2578) 2024-03-04 12:28:18 +08:00
oxc_cli feat(cli,linter): provide tsconfig path from the cli (#2526) 2024-02-27 20:00:11 +08:00
oxc_codegen perf(codegen): speed up generating sourcemap mappings (#2597) 2024-03-04 12:46:32 +08:00
oxc_diagnostics Publish crates v0.8.0 2024-02-26 19:01:51 +08:00
oxc_index Publish crates v0.8.0 2024-02-26 19:01:51 +08:00
oxc_js_regex [BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497) 2024-02-26 19:34:40 +08:00
oxc_language_server chore(deps): update rust crates (#2589) 2024-03-04 11:23:06 +08:00
oxc_linter fix(parser): fix span start for TSModuleDeclaration (#2593) 2024-03-04 04:29:32 +00:00
oxc_macros
oxc_minifier refactor(span): move base54 method to mangler (#2523) 2024-02-27 13:34:33 +08:00
oxc_parser fix(parser): fix span start for TSModuleDeclaration (#2593) 2024-03-04 04:29:32 +00:00
oxc_prettier feat(ast): add "abstract" type to MethodDefinition and PropertyDefinition (#2536) 2024-02-28 17:33:11 +08:00
oxc_semantic fix(semantic): jsx reference with an incorrect node id (#2546) 2024-03-01 21:07:57 +08:00
oxc_span refactor(span): remove AtomImpl (#2525) 2024-02-27 13:45:58 +08:00
oxc_syntax feat(linter): remove all commonjs logic for import plugin (#2537) 2024-02-28 18:13:44 +08:00
oxc_transformer fix(ast): support FormalParameter.override (#2577) 2024-03-03 14:41:42 +08:00
oxc_wasm feat(playground): support TS codegen (#2587) 2024-03-04 11:33:48 +08:00