The One Nio library accelerates Java serialization by generating custom serializers directly from bytecode. It utilizes ASM, Unsafe, and MagicAccessorImpl to achieve performance gains over standard methods and other popular libraries.

A limitation of One Nio is its lack of support for custom serialization methods such as writeObject, readObject, writeReplace, and readResolve. These methods are common in JDK classes like ImmutableCollections and InetAddress, as well as in libraries like Guava.

SberTech developers implemented a CustomizedSerializer to enable support for these methods, including defaultWriteObject and defaultReadObject. The team also addressed JPMS restrictions on Java 21 and utilized Unsafe for object copying.

This initiative is detailed in a two-part series. The first part focuses on the architecture and technical implementation, while the second part will cover performance optimization and final benchmarks measured via JMH.