I have to serialize a huge tree of objects (7000) to disk. Initially, we saved this tree in a database with Kodo, but this caused thousands and thousands of requests to load this tree into memory, and it will take a significant part of the available time of the local universe.
I tried serialization for this and I am really improving performance. However, I get the feeling that I can improve this by writing my own custom serialization code. I need to load this serialized object as quickly as possible.
In my machine, serializing / deserializing these objects takes about 15 seconds. It takes about 40 seconds to load from the database.
Any advice on what I can do to improve this performance, given that since the objects are in the tree, they refer to each other?
source
share