Perf/unmask tag fast path#6
Merged
Merged
Conversation
perf: implement non-mutating fast-path for unmaskTag and update docum…
Bumps the npm_and_yarn group with 1 update in the / directory: [picomatch](https://github.com/micromatch/picomatch). Updates `picomatch` from 2.3.1 to 2.3.2 - [Release notes](https://github.com/micromatch/picomatch/releases) - [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md) - [Commits](micromatch/picomatch@2.3.1...2.3.2) Updates `picomatch` from 4.0.3 to 4.0.4 - [Release notes](https://github.com/micromatch/picomatch/releases) - [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md) - [Commits](micromatch/picomatch@2.3.1...2.3.2) --- updated-dependencies: - dependency-name: picomatch dependency-version: 2.3.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: picomatch dependency-version: 4.0.4 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com>
…n-bf05dc1ecf Bump the npm_and_yarn group across 1 directory with 1 update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
several improvements to the
safe-tagpackage, focusing on performance, documentation clarity, and benchmarking. The most significant changes are the addition of a fast, non-mutating path to theunmaskTagfunction for common built-in objects, enhancements to documentation to clarify usage and risks, and a refactor of the benchmarking suite for better coverage and maintainability.Performance and API Improvements:
unmaskTagfor common built-ins (Array, Date, RegExp, Map, Set, Promise, Function, Error), avoiding V8 de-optimization when possible. This is implemented via the newgetInnateTaghelper.ultraFastTagfunction infast.tsto use a safer type cast, improving type safety.Documentation and Changelog:
README.mdto clarify the performance characteristics, side effects, and recommended use cases for bothsafeTagandunmaskTag, including details on the new fast-path logic.CHANGELOG.pending.mdto track unreleased changes and provide commit history since the last release.Benchmarking and Testing:
bench/index.jsto benchmark all tag functions (safeTag,unmaskTag,fastTag,ultraFastTag,cachedTag) in a unified, reusable format, improving the reliability and clarity of performance tests.