keva
keva copied to clipboard
Offboard from ObjectOutputStream to custom writer or use reset
Object output stream comes with an overhead of object cache which doesn’t make much sense for AOF as each command is independent. This leads to memory leaks and also slows down reads and writes. Since we are already writing byte stream we don’t need specific serialisation capabilities.