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

Use base extension with pre-built static libraries #324

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

guihkx
Copy link
Collaborator

@guihkx guihkx commented Jan 2, 2025

This base extension contains pre-built static libraries for zlib, liblzma, libzstd and libarchive, meaning we don't have to download and compile these libraries for every version we package.

The speed gain is massive: Without this extension, packaging 5 different driver versions on my personal computer (quad-core CPU @ 3.6 GHz) took a whopping 6 minutes.

With the base extension, the same packaging process took only 23 seconds, almost 16 times faster!


Marking as draft for now, though, because I intend to merge this when NVIDIA releases their next driver - just to avoid releasing multiple updates needlessly and annoying users.

Collaborators, feel free to review or question these changes in the meantime.

This base extension contains pre-built static libraries for zlib,
liblzma, libzstd and libarchive, meaning we don't have to download and
compile these libraries for every version we package.

The speed gain is massive: Without this extension, packaging 5 different
driver versions on my personal computer (quad-core CPU @ 3.6 GHz) took
a whopping 6 minutes.

With the base extension, the same packaging process took only 23
seconds, almost 16 times faster!
@flathubbot
Copy link

Started test build 171681

@flathubbot
Copy link

Build 171681 failed

@guihkx
Copy link
Collaborator Author

guihkx commented Jan 16, 2025

Production driver 550.144.03 was released today, so it's time to merge this.

@guihkx guihkx marked this pull request as ready for review January 16, 2025 15:01
@guihkx guihkx merged commit 94dc693 into flathub:master Jan 16, 2025
1 check passed
@guihkx guihkx deleted the nvidia-base-extension branch January 16, 2025 15:02
@guihkx
Copy link
Collaborator Author

guihkx commented Jan 16, 2025

There's been a 3-hour reduction in build time!

Before this PR: https://buildbot.flathub.org/#/builders/6/builds/170856
After this PR: https://buildbot.flathub.org/#/builders/6/builds/174778

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

Successfully merging this pull request may close these issues.

2 participants