Skip to content

optimize: Use Smallvec#514

Merged
aawsome merged 1 commit into
mainfrom
smallvec
May 23, 2026
Merged

optimize: Use Smallvec#514
aawsome merged 1 commit into
mainfrom
smallvec

Conversation

@aawsome

@aawsome aawsome commented May 23, 2026

Copy link
Copy Markdown
Member

Optimize BlobLocations for the case that this contains only a single blob - which can be ofthen the case.
In this case, this PR reduces memory allocations and size.

This affects the restore, prune and copy command.

@codecov

codecov Bot commented May 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.7%. Comparing base (d8abf46) to head (45a28be).

Additional details and impacted files
Files with missing lines Coverage Δ
crates/core/src/blob.rs 70.5% <100.0%> (ø)
crates/core/src/commands/restore.rs 44.2% <100.0%> (+0.3%) ⬆️

... and 28 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aawsome aawsome merged commit cb429f8 into main May 23, 2026
36 of 37 checks passed
@aawsome aawsome deleted the smallvec branch May 23, 2026 11:37
@rustic-release-plz rustic-release-plz Bot mentioned this pull request May 23, 2026
pull Bot pushed a commit to ChecksumDev/rustic_core that referenced this pull request Jun 2, 2026
## 🤖 New release

* `rustic_core`: 0.11.0 -> 0.12.0 (✓ API compatible changes)
* `rustic_backend`: 0.6.1 -> 0.6.2 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

## `rustic_core`

<blockquote>

##
[0.12.0](rustic-rs/rustic_core@rustic_core-v0.11.0...rustic_core-v0.12.0)
- 2026-06-01

### Added

- make backup generic over a ReadSource; add openDAL ReadSource
([rustic-rs#518](rustic-rs#518))
- [**breaking**] scope destination scan to snapshot-relevant paths for
restore ([rustic-rs#493](rustic-rs#493))

### Fixed

- Build for 32-bit Android
([rustic-rs#517](rustic-rs#517))
- read index entries in `dump` before processing
([rustic-rs#513](rustic-rs#513))
- re-export jiff
([rustic-rs#512](rustic-rs#512))
- typo in comments
([rustic-rs#511](rustic-rs#511))
- local BE - don't leave broken files when writing fails
([rustic-rs#499](rustic-rs#499))
- fix clipp lints
([rustic-rs#500](rustic-rs#500))

### Other

- update dependencies
([rustic-rs#519](rustic-rs#519))
- Use Smallvec
([rustic-rs#514](rustic-rs#514))
- parallelize blob fetch in dump command
([rustic-rs#501](rustic-rs#501))
- update opendal, reqwest and others
([rustic-rs#507](rustic-rs#507))
</blockquote>

## `rustic_backend`

<blockquote>

##
[0.6.2](rustic-rs/rustic_core@rustic_backend-v0.6.1...rustic_backend-v0.6.2)
- 2026-06-01

### Added

- make backup generic over a ReadSource; add openDAL ReadSource
([rustic-rs#518](rustic-rs#518))

### Fixed

- include repo root in warmup paths
([rustic-rs#509](rustic-rs#509))
([rustic-rs#510](rustic-rs#510))
- local BE - don't leave broken files when writing fails
([rustic-rs#499](rustic-rs#499))

### Other

- update dependencies
([rustic-rs#519](rustic-rs#519))
- enable pcloud backend feature
([rustic-rs#515](rustic-rs#515))
- update opendal, reqwest and others
([rustic-rs#507](rustic-rs#507))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

Co-authored-by: rustic-release-plz[bot] <182542030+rustic-release-plz[bot]@users.noreply.github.com>
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.

1 participant