mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-30 21:37:47 -05:00
[PR #6339] [MERGED] Optimizations and build speedup #25972
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/6339
Author: @BlackDex
Created: 10/2/2025
Status: ✅ Merged
Merged: 11/1/2025
Merged by: @dani-garcia
Base:
main← Head:llvm-optimizations📝 Commits (8)
0ea5c4bOptimizations and build speedupf2f8823Fix release profile41d3062Update typos and remove mimalloc check from pre-commit checksa997ce1Misc fixes and updated typos9e2506eUpdate crates and workflows4b584bfFix formating and pre-commit65ad7f0Update to Rust v1.91 and update cratesd42f073Update web-vault to v2025.10.1 and xx to v1.8.0📊 Changes
47 files changed (+764 additions, -490 deletions)
View changed files
📝
.github/workflows/build.yml(+28 -13)📝
.github/workflows/check-templates.yml(+0 -2)📝
.github/workflows/hadolint.yml(+3 -4)📝
.github/workflows/release.yml(+10 -10)📝
.github/workflows/releasecache-cleanup.yml(+1 -1)📝
.github/workflows/trivy.yml(+2 -4)➕
.github/workflows/typos.yml(+22 -0)📝
.github/workflows/zizmor.yml(+1 -1)📝
.pre-commit-config.yaml(+10 -4)➕
.typos.toml(+26 -0)📝
Cargo.lock(+79 -81)📝
Cargo.toml(+52 -25)📝
docker/DockerSettings.yaml(+5 -5)📝
docker/Dockerfile.alpine(+10 -10)📝
docker/Dockerfile.debian(+8 -8)📝
docker/README.md(+2 -2)📝
macros/Cargo.toml(+5 -1)📝
rust-toolchain.toml(+1 -1)📝
src/api/admin.rs(+22 -23)📝
src/api/core/accounts.rs(+10 -9)...and 27 more files
📄 Description
With this commit I have changed several components to be more efficient.
This can be less llvm-lines generated or less
clone()calls.Config
make_configmacro to be more efficientConfigBuilderless code and more efficientprepare_jsonfunction instead of generating a custom JSON object. This generates less code and is more efficient.get_support_stringfunction to handle the masking differently. This generates less code and also was able to remove some sub-macro-callsError
ApiErrorandCompactApiErrorThis makes that struct smaller in size, so better for memory, but also less llvm-lines.General
once_lockand replace it all with Rust's std LazyLockclone()calls for example.cibuild profilerust-lldwhich should help in faster buildingworkspacevariablestyposWorkflow and Pre-Commit, which should help in detecting spell error's. Also fixed a few found by it.2025-10-31
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.