Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Nov 26, 2024

Followup to #23014

$LZ4: {
DIR_MODE: {{{ cDefs.S_IFDIR }}} | 511 /* 0777 */,
FILE_MODE: {{{ cDefs.S_IFREG }}} | 511 /* 0777 */,
DIR_MODE: {{{ cDefs.S_IFDIR }}} | 0o777,
Copy link
Member

Choose a reason for hiding this comment

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

Does closure optimize this? The octal notation is easier to read but it is larger.

Copy link
Member

Choose a reason for hiding this comment

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

The acorn optimizer might also optimize this, maybe just by default, if it doesn't track what was octal originally and preserve it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, which ever layer it is that converts this to a normal number, it is happening since this change has zero code size changes.

@sbc100 sbc100 force-pushed the octals branch 2 times, most recently from 86d0fda to f3ed0f4 Compare November 27, 2024 01:05
@sbc100 sbc100 enabled auto-merge (squash) November 27, 2024 05:57
@sbc100 sbc100 merged commit 55934a5 into emscripten-core:main Nov 27, 2024
28 checks passed
@sbc100 sbc100 deleted the octals branch November 27, 2024 06:41
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