Hi Liam,
did this ever happen?
What exactly? ;)
- reserve 7 bits for the namespace, and 1 bit for "uses extended
namespace". In the top-bit-set objects only, add an extra byte.
- Use the first 2 bytes of the element name :)
There are a few online resources with details on our chosen storage layout [1,2,3]. I think that we pretty much use every available bit for storing references and flags (except e.g. for text nodes, which have less metadata than elements or attributes), but maybe there’s indeed something specific that we could optimize? More suggestions are welcome.
Cheers Christian
[1] http://files.basex.org/publications/Gruen%20%5B2010%5D,%20Storing%20and%20Qu... [2] http://docs.basex.org/wiki/Storage_Layout [3] https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/ba...