The readme really lacks the answer to the "why" question. What's the use case, why should I prefer it over real sqlite?
A CGo-free port of SQLite/SQLite3
11–20 of 39 posts
Re: A CGo-free port of SQLite/SQLite3
#12[flagged]
Re: A CGo-free port of SQLite/SQLite3
#13Re: A CGo-free port of SQLite/SQLite3
#14[flagged]
However, there are some work arounds to some situations. Git could (presumably) still be used, if you have that (although you might not want the entire repository and only some files, so that is a possible issue with this). If you have a URL of a specific file that you can change "blob" to "raw" in the URL to access the raw file (this works on other services as well and is not specific to Gitlab). For commits, you can add ".patch" or ".diff" on the end of the URL (this also is not specific to Gitlab).
Re: A CGo-free port of SQLite/SQLite3
#15Earlier quoted context omitted.
Because it's cgo-free maybe?
Cgo overhead is trivial compared to what's happening inside a database engine, totally not worth it
Re: A CGo-free port of SQLite/SQLite3
#16Earlier quoted context omitted.
Because it's cgo-free maybe?
Cgo overhead is trivial compared to what's happening inside a database engine, totally not worth it
Re: A CGo-free port of SQLite/SQLite3
#17Earlier quoted context omitted.
Because it's cgo-free maybe?
Cgo overhead is trivial compared to what's happening inside a database engine, totally not worth it
but the overheads also stack up, the database/sql api is fairly allocation heavy too unless you do a lot of work and that friction increases quite a bit with the ffi boundary.
this is not to suggest “modernc is faster” - it’s not for a lot a workloads.
there are opportunities for optimization all over both approaches.
Re: A CGo-free port of SQLite/SQLite3
#18Earlier quoted context omitted.
Cgo overhead is trivial compared to what's happening inside a database engine, totally not worth it
It's not just about overhead/performance. cgo-free means no need to set up a cross-compiler if targeting other devices. Just "go build" with the right GOARCH and GOOS will let you compile a binary that will run on most devices.
Re: A CGo-free port of SQLite/SQLite3
#19Earlier quoted context omitted.
Cgo overhead is trivial compared to what's happening inside a database engine, totally not worth it
It's not just about overhead/performance. cgo-free means no need to set up a cross-compiler if targeting other devices. Just "go build" with the right GOARCH and GOOS will let you compile a binary that will run on most devices.
Re: A CGo-free port of SQLite/SQLite3
#20Earlier quoted context omitted.
It's not just about overhead/performance. cgo-free means no need to set up a cross-compiler if targeting other devices. Just "go build" with the right GOARCH and GOOS will let you compile a binary that will run on most devices.
I'm pretty sure that C is a much better choice if you really care about binaries that run on most devices