perf: compile default bot matcher at build time - #318
Merged
Conversation
commit: |
📦 Package Size
All tracked output (10)
Runtime dependencies (10)
Baseline: main_@_1998e6d___2026-08-10 · gzip is the comparison metric · changes below 16 B gzip are ignored |
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.
❓ Type of change
📚 Description
nuxt-ai-readycalledcreatePatternMap()during bot negotiation on every SSR. Generate a compact regex matcher fromBOT_MAPduring the package build, while custom maps keep request-local behavior.SSR CPU fell between 17% and 26% across three controlled runs. The SSR module profile allocated 23.3 KiB less per request.
robots.txtandllms.txtcrossed baseline in both directions.