Extended DeltaChain with CDeltaChain and PyDeltaChain which are wrappers around
c and python delta chains respectively. The declaration and implementation
of c and python delta chains as well as DeltaChainLink were put in a different
file.
Details
- Reviewers
ryanmce durham simonfar - Group Reviewers
Restricted Project - Commits
- rFBHGX558fcd49a428: cstore: extend and refactor deltachain class
- Ensure that unit tests pass
Diff Detail
- Repository
- rFBHGX Facebook Mercurial Extensions
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
You could make this even more trivial to review with with (a) moving the code followed by (b) renaming to CDataPack and introducing the abstract base class, then (c) Adding PythonDataPack. Bonus points for a 4th one that changes code() to status() but I think that might be overkill. When you optimize for reviewer brainpower, you get faster reviews :-)
cstore/deltachain.h | ||
---|---|---|
130–131 | nit: should have space after // | |
165 | Worth a comment why you're not freeing anything here like you do above. (I think it's because Python is handling it's own memory -- is that correct?) |
cstore/deltachain.h | ||
---|---|---|
28 | filename and deltabasefilename can be different lengths, so we should store the sizes separately. |
filename and deltabasefilename can be different lengths, so we should store the sizes separately.