New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename Variables slow obfuscation time #95
Comments
Hi, how to perform such test? |
Hi this is from a webpack plugin I’m making, it will be available soon. Also I found a solution to the slow obfuscation times so expect this fixed in the next update. |
Cool, I made a new PR with a progess bar which helped me figure out what is taking so long, apparently it's the NameRecycling transformation which takes upwards of 4 minutes! |
Here is a simple benchmark I did for some other transformations: Stack: 28 seconds It is important to note that after first execution, after V8 JIT takes place, these times dwindle a lot (< 10 seconds), |
Im planning on removing the Name Recycling option (it's a weak obfuscation, and Rename Variables already practically does this) and have rewritten Moved declarations to be more efficient. |
Awesome, looking forwards to the update. |
Hey, has there been any updates to this? Looking to find out on my own what's taking so long, have there been any discoveries? |
Yes here's what I've achieved so far: {
"fileName": "static/js/bundle.js",
"obfuscatedTime": "18.6 Seconds",
"transformationTimes": {
"Preparation": "0.8 Seconds",
"ObjectExtraction": "1.1 Seconds",
"Dispatcher": "0.5 Seconds",
"DeadCode": "0.1 Seconds",
"Calculator": "0.1 Seconds",
"ControlFlowFlattening": "0.7 Seconds",
"OpaquePredicates": "0.2 Seconds",
"StringConcealing": "0.4 Seconds",
"DuplicateLiteralsRemoval": "0.5 Seconds",
"MovedDeclarations": "0.4 Seconds", // from 6.1 Seconds
"RenameLabels": "0.5 Seconds",
"Minify": "1.1 Seconds",
"RenameVariables": "9.3 Seconds", // from 36.4 Seconds
"AntiTooling": "0.3 Seconds",
"Finalizer": "0.5 Seconds"
},
"originalFileSize": "3mb",
"obfuscatedFileSize": "5mb"
}, I will release this soon |
The
Rename Variables
is very slow! Taking over 30 seconds for 3mb file.This is obfuscating an entire React build on Low preset. (With compact=false for fair file size comparison)
The text was updated successfully, but these errors were encountered: