#918334 sqlite3: please support parallel builds

Package:
src:sqlite3
Source:
sqlite3
Submitter:
Helmut Grohne
Date:
2025-02-09 18:15:02 UTC
Severity:
wishlist
Tags:
#918334#5
Date:
2019-01-05 09:20:04 UTC
From:
To:
Given that sqlite3 compiles its whole source as one translation unit,
the optimizations tend to take longer and longer and sqlite3's build
time increases. Therefore I ask for supporting parallel builds. In my
tests, we can achieve a 40% reduction in build time.

Helmut

#918334#10
Date:
2022-07-18 11:36:17 UTC
From:
To:
Hi Helmut,
 Thanks for your work. As noted previously, upstream doesn't recommend
the individual source files. Of course, in Debian we use sources like
those that exist in the VCS repository for easy tracking of changes.
Upstream even says using / creating an amalgamation is how SQLite3
should be compiled to let the compiler choose the best optimization
techniques. That way the execution step can be increased by 5% to 10%
[1]. Compilation time however happens only once.
Once I already used parallel building and as I remember, not every
time but often enough it just broke. Can do testing locally and if
someone can help (donate) me old / small architectures - RISC-V for
example -, then I plan to re-test parallel compilation.

Regards,
Laszlo/GCS
[1] https://www.sqlite.org/howtocompile.html

#918334#15
Date:
2025-02-09 18:00:52 UTC
From:
To:
I see debian/rules is using the build flag —disable-amalgamation. It used to be needed to build with option ENABLE_UPDATE_DELETE_LIMIT but that seems to be no longer true.

I think this build flag should probably be removed to get the speedups mentioned.