Speed up mod annotation scanning by ~30% (#10469)

Co-authored-by: LexManos <LexManos@gmail.com>
This commit is contained in:
JonathingandLexManos authored and GitHub committed 2025-03-04 12:56:19 -08:00
1 parent 530c7c4eb5
commit 85ab903cd1
1 file changed
+1 -1
@@ -48,7 +48,7 @@ class Scanner {
try (InputStream in = Files.newInputStream(path)){
ModClassVisitor mcv = new ModClassVisitor();
ClassReader cr = new ClassReader(in);
cr.accept(mcv, 0);
cr.accept(mcv, ClassReader.SKIP_CODE | ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES);
mcv.buildData(result.getClasses(), result.getAnnotations());
} catch (IOException | IllegalArgumentException e) {
// mark path bad