ssbc / bipf

Binary json codec optimized for in-place access
MIT License
48 stars 9 forks source link

Refactor things into separate files #34

Closed arj03 closed 2 years ago

arj03 commented 2 years ago

Splitting things out inside separate files. Seems like encode + decode is around 2*100 + a bit. Not too bad :)

Also did a tiny var => const refactor while I was at it.

I have tested this doing full queries on an empty database and performance is the same as before.

arj03 commented 2 years ago

I have been working on cleaning up BIPF to make it easier for other people to implement as its now used in [buttwoo]. The easiest way to review this is by commit. I tried to not change very much other than splitting things up and minor cleanups (const, let, consistent naming).

staltz commented 2 years ago

Much appreciated the commit-by-commit approach. Great refactor!