GithubHelp home page GithubHelp logo

Comments (7)

jillest avatar jillest commented on September 26, 2024

The sqlite upstream recommends shipping the amalgamation with applications; I think it is probably best to follow that for charybdis itself.

If a distribution does not agree, they can use a patch.

from charybdis.

anarcat avatar anarcat commented on September 26, 2024

that's what we are doing, and that's what the above patch does.

but shouldn't we make it simpler for distributions to do this?

from charybdis.

Elizafox avatar Elizafox commented on September 26, 2024

Following the recommendations of sqlite upstream is (imo) more important than appeasing distros.

from charybdis.

anarcat avatar anarcat commented on September 26, 2024

I keep on hearing that statement that sqlite upstream recommends amalgamation, yet I can't seem to find the source here.

I would like to avoid diverging too much with upstream (charybdis) in the debian package. Couldn't we at least make an option in the compile chain to use the installed sqlite at build time?

from charybdis.

grawity avatar grawity commented on September 26, 2024

@anarcat: Did you mean http://www.sqlite.org/amalgamation.html?

In addition to making SQLite easier to incorporate into other projects, the amalgamation also makes it run faster. Many compilers are able to do additional optimizations on code when it is contained with in a single translation unit such as it is in the amalgamation. We have measured performance improvements of between 5 and 10% when we use the amalgamation to compile SQLite rather than individual source files. The downside of this is that the additional optimizations often take the form of function inlining which tends to make the size of the resulting binary image larger.

from charybdis.

anarcat avatar anarcat commented on September 26, 2024

This says amalgamation runs faster, but it doesn't say it's the recommended way.

from charybdis.

jillest avatar jillest commented on September 26, 2024

As of 74273d8, we have a --with-shared-sqlite option.

from charybdis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.