#jvm #bytecode #jvm-bytecode

cfsp

A JVM Bytecode Manipulation Framework inspired by ASM

2 stable releases

1.0.1 Jul 31, 2023
1.0.0 Jul 29, 2023

#808 in Development tools

38 downloads per month
Used in ka-pi

MIT license

215KB
5.5K SLoC

ClassFile Structural Parser (CFSP)

crates.io codecov

A general usage parser used to parse class file into structural nodes.

This class file parser implementation is support up to Java SE 20 based on The Java® Virtual Machine Specification Java SE 20 Edition.

About Performance

Currently, classfile_parser's performance is guaranteed to be parsing whole class file in < 1 ms on average-sized class file. However, the timing might be varied based on the instruction control flow and attributes. (For example, take a look at the ~/compiled_source/src/MegaSized.java, this can produce class file that weighs over 6 MB, which would take 50 ms to parse).

The performance currently is not very ideal compare to classfile-rs's implementation.

(Note: Though there's possibility that this performance is lead by full implementation.)

Dependencies

~0.6–1.3MB
~28K SLoC