Skip to content

Commit

Permalink
Merge pull request #124 from parcel-bundler/alsh/fixing-lint-error
Browse files Browse the repository at this point in the history
Fix: Clippy linting error
  • Loading branch information
Nikola-3 committed Jan 17, 2024
2 parents 6ef1795 + dc16601 commit 0cc878c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parcel_sourcemap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ impl SourceMap {
}
}

for (_generated_line, line_content) in self.inner.mapping_lines.iter_mut().enumerate() {
for line_content in self.inner.mapping_lines.iter_mut() {
for mapping in line_content.mappings.iter_mut() {
let original_location_option = &mut mapping.original;
if let Some(original_location) = original_location_option {
Expand Down

1 comment on commit 0cc878c

@github-actions
Copy link

Choose a reason for hiding this comment

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

Parcel sourcemap benchmark

Benchmark suite Current: 0cc878c Previous: 6ef1795 Ratio
consume#consume buffer 159182 ops/sec (±27%) 105742 ops/sec (±13%) 0.66
consume#consume vlq mappings 76433 ops/sec (±17%) 40540 ops/sec (±21%) 0.53
consume#consume JS Mappings 73810 ops/sec (±7.1%) 46788 ops/sec (±7.4%) 0.63
serialize#Save buffer 409 ops/sec (±1.1%) 366 ops/sec (±2.1%) 0.89
serialize#Serialize to vlq 291 ops/sec (±11%) 195 ops/sec (±13%) 0.67
modify#positive column offset 119708 ops/sec (±23%) 75517 ops/sec (±19%) 0.63
modify#negative column offset 117194 ops/sec (±14%) 79258 ops/sec (±13%) 0.68
modify#negative line offset 107995 ops/sec (±14%) 57800 ops/sec (±12%) 0.54
modify#positive line offset 99934 ops/sec (±13%) 53879 ops/sec (±9.9%) 0.54
append#addSourceMap 294 ops/sec (±6.8%) 190 ops/sec (±11%) 0.65

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

Please sign in to comment.