Notes:
The ZODB4 implementation consists of
8200 lines of Python
1700 lines of C for core ZODB (and shrinking)
7000 lines of code for persistent BTrees