jbarham / cdb Goto Github PK
View Code? Open in Web Editor NEWPure Go implementation of D. J. Bernstein's cdb constant database library.
License: BSD 2-Clause "Simplified" License
Pure Go implementation of D. J. Bernstein's cdb constant database library.
License: BSD 2-Clause "Simplified" License
Python's cdb library has a handy function to iterate all keys in a cdb database: http://pilcrow.madison.wi.us/pycdb_doc.html
It would be awesome to be able to do the same with go-cdb.
(Also the function for # of items in a cdb is handy and would be nice)
Any chance of supporting >4GB database sizes by using uint64 instead of uint32?
These days 4GB is pretty small... :-)
Instead of have two different commands, could be merged into only one.
The guard around c.hslots == 0 in cdb.(*Cdb).find() calls an empty return, which ultimately results in nil being returned rather than io.EOF, even though the key does not exist in the database.
What license is this released under? Would you mind adding an explicit license file to the repository?
The 2kB header is not stored in cdb.Cdb, so find() calls c.readNums((h << 3) & 2047) on the first lookup after each call to FindStart(). If the OS cache was flushed, this could lead to 3 seeks rather than 2.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.