-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Support for CDB64? #11
Comments
I know about the various 64 bit CDB alternatives (including the one you've mentioned), however (at least at the time I've done my initial assesment of them) none of them supported In fact, see this issue raised on the project that you've mentioned, which actually points to my initial issue on the "plain" CDB Go library:
Why is Kawipiko's main focus is raw performance. Go has a garbage-collected run-time. These two don't play nice with one another. Using Another minor observation is that using As a side-note, Kawipiko doesn't use Go's HTTP implementation (for HTTP/1.1) but instead it uses https://github.com/valyala/fasthttp which is carefully implemented to eliminate as much as possible the need for the Go runtime to execute garbage collection. (I do use Go's HTTP implementation for HTTP/2, and that is why the performance for HTTP/1.1 is far better than HTTP/2.) Getting back to (In fact, I spent perhaps more time on profiling Kawipiko to make sure the Go garbage collector doesn't kick-in than on actually writing Kawipiko.) Thus to summarize, using a 64 bit variant of CDB is doable, but only if one forks and patches one of the existing libraries to support (I'll open a discussion thread about a different approach.) |
@lemondevxyz also see discussion #14 which might be an alternative. |
CDB has a file size limit of 4 GB which is a part of the file specification. There is a library that makes some of the 32 bit integers, the ones responsible for the 4 GB limit, into 64 bit integers thereby erasing the file limit.
Here's a link to the cdb64 library.
The use case for this feature request is multiple hosts. Imagine you have multiple hosts that use high quality images (4 MB per image) and the 4 GB is quickly reached when applied to multiple hosts.
I can implement this feature request myself.
The text was updated successfully, but these errors were encountered: