Comments (9)
from closure-compiler.
Actually, in the advanced more, both number
s and bigint
s can be emitted in hexadecimal if it makes the output shorter (literals larger than a certain threshold which can be calculated)
If true
is transformed to !0, this optimization can also be considered, which may be equally effective.
from closure-compiler.
This is a fair optimization request. We may not be able to prioritize this but we'd be happy to receive a PR of this change.
from closure-compiler.
Could you point me to the file where literals are emitted?
from closure-compiler.
I think you'd modify the code approximately here.
from closure-compiler.
Related Issues (20)
- com.google.guava vulnerability issue in closure-compiler-20220502 HOT 4
- Assigning a variable while passing to a function fails AC HOT 6
- A for loop compiles incorrectly in WHITESPACE_ONLY and SIMPLE_OPTIMIZATIONS HOT 3
- CommandLineRunner: "renaming cannot be disabled when ADVANCED_OPTIMIZATIONS is used" is wrong HOT 4
- "Copyright The Closure Library Authors" always shows up as the first comment even in code that is ultimately not Apache 2.0 licensed HOT 2
- ADVANCED compilation mode incorrectly removes non-dead code HOT 7
- BUG in Whitespace only for online compiler
- Extern definitions for WebGPU HOT 4
- Google Closure Compiler on Mac with M3 chip HOT 2
- Concatenated template literals are not merged
- java.lang.RuntimeException: INTERNAL COMPILER ERROR. HOT 3
- INTERNAL COMPILER ERROR: Cannot invoke "com.google.javascript.rhino.PMap.isEmpty()" because "that" is null HOT 1
- Removal of non deprecated method SourceFile fromInputStream HOT 3
- Closure minification adds \uxxxx escapes into output file, increasing code size HOT 2
- Piping Closure compiler stderr output to Python with Unicode characters on Windows problem HOT 6
- Dataflow analysis appears to diverge around: WHILE 28288:118 HOT 1
- closure-compiler-unshaded v20240317 embeds jakarta.annotation-api HOT 5
- How does --warnings_allowlist_file works? I tried many ways but no luck HOT 6
- JSC_INEXISTENT_PROPERTY_WITH_SUGGESTION is hidden if the inexistent property is set in unrelated code. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from closure-compiler.