A fast and simple Java object serialization library based on Ahead-of-Time schema generation.
This project hast been tested with the
- Java SE Development Kit 8 [Download]
Other versions may work but are not supported officially.
- On-the-fly schema generation for unregistered classes
- Random instance initialization
- Partial serialization and deserialization
- Optional off-heap memory usage
- No implementation needed
- Simple API
// Enable auto registration
Skema.enableAutoRegistration();
// Create an instance of your object
MyObject original = new MyObject();
// Serialize the object using Skema
byte[] buffer = Skema.serialize(original);
// Create a new instance of your object using the serialized data
MyObject copy = Skema.deserialize(MyObject.class, buffer);
repositories {
maven {
url "https://dl.bintray.com/hhu-bsinfo/dxram"
}
}
dependencies {
implementation 'de.hhu.bsinfo:skema:1.0.0'
}
Since this project uses the Gradle build system running all included tests is possible using the following command.
./gradlew skema:test
This project includes a set of JMH benchmarks which can be executed using the following command.
./benchmark.sh
- Gradle - Build System
- Filip Krakowski [filkra]
See also the list of contributors who participated in this project.
This project is licensed under the GNU GPLv3 License - see the LICENSE.md file for details.