Skip to content

Update protobuf-JS 3.14.0 -> 3.21.4#1452

Merged
sampajano merged 1 commit intogrpc:masterfrom
sampajano:1.update.protobuf
Jul 23, 2024
Merged

Update protobuf-JS 3.14.0 -> 3.21.4#1452
sampajano merged 1 commit intogrpc:masterfrom
sampajano:1.update.protobuf

Conversation

@sampajano
Copy link
Copy Markdown
Collaborator

@sampajano sampajano commented Jul 19, 2024

Protobuf-js 3.21.4 has a significantly reduced code size after re-enabling optimized build:
https://bundlephobia.com/package/[email protected]

I did a test build of helloworld example (similar to above) using #1452, and analyzed the bundle size.

And the size of google-protobuf.js went down from 230KB -> 66KB:

  • Before: 230KB (google-protobuf) / 286KB (total) = 80% of total demo bundle size
  • After: 66KB (google-protobuf) / 122KB (total) = 54% of total demo bundle size

Before (google-protobuf: 230KB, total: 286KB)

Screenshot 2024-07-22 at 7 22 22 PM

After (google-protobuf: 66KB, total: 122KB)

Screenshot 2024-07-22 at 4 36 48 PM

@sampajano sampajano force-pushed the 1.update.protobuf branch from 464fdb4 to b3fd2c2 Compare July 19, 2024 23:29
@sampajano sampajano changed the title Update protobuf-JS to 3.21.4 Update protobuf-JS 3.14.0 -> 3.21.4 Jul 23, 2024
@sampajano sampajano merged commit 8ba8fbe into grpc:master Jul 23, 2024
@sampajano sampajano deleted the 1.update.protobuf branch July 23, 2024 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant