Skip to content

Commit

Permalink
fix: cheap-module-source-map too slow (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahabhgk authored Mar 22, 2023
1 parent b5ed922 commit ed7cb9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -830,8 +830,8 @@ fn stream_chunks_of_source_map_lines_full(
let mut current_generated_line = 1;
let mut on_mapping = |mapping: &Mapping| {
if mapping.original.is_none()
&& mapping.generated_line < current_generated_line
&& mapping.generated_line as usize > lines.len()
|| mapping.generated_line < current_generated_line
|| mapping.generated_line as usize > lines.len()
{
return;
}
Expand Down

1 comment on commit ed7cb9e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: ed7cb9e Previous: b23c816 Ratio
benchmark_concat_generate_base64 27844 ns/iter (± 32853) 23757 ns/iter (± 206) 1.17
benchmark_concat_generate_base64_with_cache 17674 ns/iter (± 2894) 15071 ns/iter (± 63) 1.17
benchmark_concat_generate_string 14475 ns/iter (± 3003) 12086 ns/iter (± 51) 1.20
benchmark_concat_generate_string_with_cache 4075 ns/iter (± 910) 3374 ns/iter (± 24) 1.21

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.