Skip to content

Conversation

@dibenede
Copy link
Contributor

No description provided.

@dibenede dibenede requested a review from lukesandberg October 14, 2022 21:52
@dibenede dibenede self-assigned this Oct 14, 2022

function enableSimpleOptimizations(cb) {
compilationLevel = 'SIMPLE';
cb();
Copy link
Contributor

Choose a reason for hiding this comment

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

reset after callback

* @param {number} lo The low 32 bits.
* @param {number} hi The high 32 bits.
* @constructor
* @export
Copy link
Contributor

Choose a reason for hiding this comment

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

this is an example of something that is only being exported for tests

can you open an issue to look into removing export from APIs like this to improve size and just note that this will require a test refactoring.

@dibenede dibenede merged commit 3ff6090 into protocolbuffers:main Oct 14, 2022
@dibenede dibenede deleted the commonjs-tests branch October 14, 2022 22:22
gbl08ma added a commit to tnyim/jungletv that referenced this pull request Jul 29, 2023
This is so we get the bundle size optimizations the official package still hasn't cut in a release, after almost one year: protocolbuffers/protobuf-javascript#146

(and yes I was too lazy to get it to compile so I wouldn't depend on a sketchy fork)
(the sketchy fork is used in TRON cryptocurrency stuff too, we should be fine, cough cough)
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