Manuelbaun / serializer_libs_comparison

serializer libs comparison, use flatbuffers, Hive, message pack
0 stars 0 forks source link

Add ObjectBox and Sembast #1

Open ueman opened 3 years ago

ueman commented 3 years ago

I guess it would be nice if the comparison includes

They aren't strictly speaking a serializer, however they are solving more or less the same use case as Hive and Isar.

Manuelbaun commented 3 years ago

@ueman I will look at them.

Although as far as I know, ObjectBox is using flatbuffers under the hook, I can look at how Sembast is solving the serializing part and compare them to how Hive or Flatbuffers perform.

ueman commented 3 years ago

That's interesting I didn't know that about ObjectBox.

ueman commented 3 years ago

Looks like Sembast uses JSON textfiles: https://github.com/tekartik/sembast.dart/blob/master/sembast/doc/storage_format.md

Manuelbaun commented 3 years ago

Oh I see, interesting.

So, essentially the serializing speed depends on how fast someone can serialize JSON. I would assume, It would be much slower?

ueman commented 3 years ago

There's just one way to find out.

Well I would guess that it's not that slow because the file is append only. However there are compactions every now and then to reduce the file size which could cause seemingly random slow downs.

Manuelbaun commented 3 years ago

There's just one way to find out.

absolutely. I will have to take a look since I only use the serialization of the libs to compare, not actually the write to the database.