You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently all gokv.Store implementations in this repo (un-)marshal to/from JSON. This is nice because:
In case a distributed store is used, other applications can easily work with the same data (e.g. a Java web service can get a value from Redis and deal with the JSON with a simple JSON library)
When you want to examine some values manually you can use some client (like some web admin dashboard for Redis for example) and see and understand the data without having to decode anything
But:
The marshalled JSON data is probably bigger than gob in its size
According to the gob documentation the (un-)marshalling to/from gob is extremely fast, so using gob should improve the (un-)marshalling performance
So: Implement gob as alternative to JSON for (un-)marshalling for all currently existing gokv.Store implementations in this repo. Make this optional (via the Options struct in each implementation package)!
The issue already existed back when gokv was still part of ln-paywall as package storage, so maybe have a look at the issue created for that repo as well: philippgille/ln-paywall#32
The text was updated successfully, but these errors were encountered:
Currently all
gokv.Store
implementations in this repo (un-)marshal to/from JSON. This is nice because:But:
So: Implement gob as alternative to JSON for (un-)marshalling for all currently existing
gokv.Store
implementations in this repo. Make this optional (via theOptions
struct in each implementation package)!The issue already existed back when
gokv
was still part of ln-paywall as packagestorage
, so maybe have a look at the issue created for that repo as well: philippgille/ln-paywall#32The text was updated successfully, but these errors were encountered: