Binary-Heaps icon indicating copy to clipboard operation
Binary-Heaps copied to clipboard

Serialization/deserialization possible?

Open lumina7 opened this issue 5 years ago • 0 comments

Hello,

Thank you for all your algorithms implementation with Lua :)

Not really an issue, but I would like to save the heap and restore it later without dumping all the values and without remaking the heap from scratch. (would make the heap useless)

Is this possible to serialize the metatable and deserialize later? I could not do it out of the box with any of lua serialization modules, and pluto did not work at all. If this is possible, can I have a working lua code?

Merci

lumina7 avatar Apr 30 '20 14:04 lumina7