Skip to content

Performance improvements sourcemap#3

Closed
miguelmarcondesf wants to merge 17 commits intomainfrom
performance-improvements-sourcemap
Closed

Performance improvements sourcemap#3
miguelmarcondesf wants to merge 17 commits intomainfrom
performance-improvements-sourcemap

Conversation

@miguelmarcondesf
Copy link
Copy Markdown
Owner

No description provided.

@miguelmarcondesf miguelmarcondesf force-pushed the performance-improvements-sourcemap branch 2 times, most recently from d892e53 to 3f13a91 Compare April 29, 2025 15:09
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves the performance of source map operations by refactoring the source map parser to use destructuring for improved clarity and efficiency, and by updating benchmark tests and documentation accordingly.

  • Refactor of source map parsing in lib/internal/source_map/source_map.js to destructure map properties.
  • Update of benchmark documentation paths and benchmark test files.
  • Renaming update in benchmark/es/error-stack.js for clearer operation naming.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lib/internal/source_map/source_map.js Refactored source map parsing with destructuring to improve performance.
doc/contributing/writing-and-running-benchmarks.md Updated command path for running benchmarks.
benchmark/source_map/source-map.js Added new benchmarks for various source map operations.
benchmark/source_map/source-map-cache.js Added benchmarks for caching source maps.
benchmark/source_map/prepare-stack-trace.js Introduced benchmarks for preparing stack traces with source maps.
benchmark/es/error-stack.js Updated benchmark operation name for consistency.
Comments suppressed due to low confidence (1)

benchmark/es/error-stack.js:13

  • [nitpick] The operation name was changed from 'node-module-sourcemap' to 'node-modules-sourcemap'. Please confirm that this updated naming is intentional and consistent with other benchmark operation names.
'node-modules-sourcemap']

@miguelmarcondesf miguelmarcondesf force-pushed the performance-improvements-sourcemap branch 3 times, most recently from 0b6d29b to 5e438af Compare May 2, 2025 17:47
@miguelmarcondesf miguelmarcondesf force-pushed the performance-improvements-sourcemap branch 2 times, most recently from 5749fce to bc9fbe9 Compare May 6, 2025 16:42
@miguelmarcondesf miguelmarcondesf force-pushed the performance-improvements-sourcemap branch from bc9fbe9 to dc060c0 Compare June 5, 2025 15:56
@miguelmarcondesf miguelmarcondesf force-pushed the performance-improvements-sourcemap branch from f1040cd to 421ae12 Compare June 5, 2025 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants