TLDR Web Dev · MISCELLANEOUS

THE SORRY STATE OF JAVA DESERIALIZATION

marginalia.nu12 min read

Summary from the TLDR Web Dev newsletter

Java deserialization is surprisingly slow. This developer benchmarks various techniques for reading 1 billion rows of data from disk, including using `DataInputStream`, JDBC, Protobuf, Parquet, and custom solutions. The results show that even with optimized custom implementations, Java's performance lags significantly behind the theoretical maximum for disk I/O.