Skip to content

Strip verify() and delimited functions from proto.js to reduce bundle size - #183

Closed
tylerccarson wants to merge 1 commit into
mainfrom
proto-strip-verify-delimited
Closed

Strip verify() and delimited functions from proto.js to reduce bundle size#183
tylerccarson wants to merge 1 commit into
mainfrom
proto-strip-verify-delimited

Conversation

@tylerccarson

@tylerccarson tylerccarson commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

verify() and encodeDelimited()/decodeDelimited() have zero needed call sites in the extension codebase. Passing --no-verify --no-delimited to pbjs removes them, reducing proto.js from 4.81 MiB to ~3.96 MiB minified (~848 KB savings) and bringing the Firefox BG bundle from 4.84 MiB to ~4.0 MiB — more comfortably under the 5 MiB addon linter limit.

@tylerccarson

Copy link
Copy Markdown
Contributor Author

Superseded by the combined PR — this work is included in #proto-bundle-optimizations.

@tylerccarson
tylerccarson deleted the proto-strip-verify-delimited branch June 29, 2026 16:28
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.

1 participant