timshannon / badgerhold

BadgerHold is an embeddable NoSQL store for querying Go types built on Badger
MIT License
514 stars 52 forks source link

Export KeyList type #68

Closed b-tarczynski closed 2 years ago

b-tarczynski commented 2 years ago

For performance reasons I want to write custom encoder that doesn't include golang gob. I propose to export keyList type. It would simplify custom encoder implementation for keyList type without use of reflect package.

timshannon commented 2 years ago

Yeah if you want to do something like hardcoded byte returns or something this would be necessary. Good call. You'll also likely have to implement your own Storer interface to avoid reflection as well.