-
Notifications
You must be signed in to change notification settings - Fork 470
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
perf: 2x speed up reading contents from zip/jar #761
Conversation
This specific optimistaions is targeted towards JVM Class resources, in is isAsmCompliantClass we would read the class and check for custom attributes, then we would read the class again to build the class info in this pr I merged the functionality of isASMCompliantClass into ClassBuilderAppender
15f3790
to
127989f
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev4 #761 +/- ##
============================================
- Coverage 66.85% 66.85% -0.01%
+ Complexity 2410 2406 -4
============================================
Files 323 322 -1
Lines 13934 13925 -9
Branches 1584 1584
============================================
- Hits 9316 9309 -7
+ Misses 3896 3894 -2
Partials 722 722 ☔ View full report in Codecov by Sentry. |
I oughta look into keeping codecov but not having it "fail" the build... |
5281ac4
to
0bef105
Compare
recaf-core/src/main/java/software/coley/recaf/workspace/io/BasicInfoImporter.java
Outdated
Show resolved
Hide resolved
Changed flag to skipCustomAttributeChecks and made it true by default since we should only be checking this from InfoImporter, we should be ignoring for jvm bundles for example. Also added back the skipASMValidation check to make sure parity is the same
0bef105
to
211b9d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok looks good to me
recaf-core/src/main/java/software/coley/recaf/workspace/io/BasicInfoImporter.java
Show resolved
Hide resolved
11894f1
to
9a8a032
Compare
This specific optimistaions is targeted towards JVM Class resources, in is isAsmCompliantClass we would read the class and check for custom attributes, then we would read the class again to build the class info in this pr I merged the functionality of isASMCompliantClass into ClassBuilderAppender
What's new
Before ~ 5746ms on a 100mb jar
After ~ 2823ms