Skip to content
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

Consider cgo-free version of sqlite #74

Open
arnarg opened this issue Jul 27, 2023 · 2 comments
Open

Consider cgo-free version of sqlite #74

arnarg opened this issue Jul 27, 2023 · 2 comments

Comments

@arnarg
Copy link
Contributor

arnarg commented Jul 27, 2023

Since this is a bit more involved in sqlite than most other projects, this might very well not be an option, but have you considered/tested using https://pkg.go.dev/modernc.org/sqlite instead of the standard github.com/mattn/go-sqlite3?

It is reportedly a bit slower since it's transpiled from c to non-optimized go but it has worked for my use-cases well. And building is a breeze :) (I actually could not build marmot without using a docker image on NixOS).

Are there any other cgo dependencies that I'm missing?

@maxpert
Copy link
Owner

maxpert commented Jul 27, 2023

I've considered pure Go implementation before. My main motivation is to stick with the upstream so that people can get the latest and greatest features. For the build I intend to provide prebuilt binaries for all operating systems and CPUs. I already have work item to have MacOS binary part of build, but if NixOS is anything different then we can add that to list.

@maxpert
Copy link
Owner

maxpert commented Jul 27, 2023

Again I am open to contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants