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

Impl Clone for Filesystem #845

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Impl Clone for Filesystem #845

merged 1 commit into from
Nov 16, 2023

Conversation

mkaput
Copy link
Member

@mkaput mkaput commented Oct 30, 2023

This surprisingly small addition required some bigger changes. Filesystems are now lifetime-unbound, and rely on internal Arcs instead of references. Technically this means higher heap pressure and slower code due to increased use of atomics, but Filesystems are by nature not part of hot paths, so this is fine.

Signed-off-by: Marek Kaput marek.kaput@swmansion.com


Stack:

⚠️ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

@mkaput mkaput requested a review from maciektr October 30, 2023 17:57
github-merge-queue bot pushed a commit that referenced this pull request Oct 30, 2023
**Stack**:
- #846
- #845
- #844
- #843
- #819
- #818
- #809
- #808
- #807⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
@mkaput mkaput force-pushed the spr/main/ebda97d6 branch from c95c9bb to c825636 Compare October 31, 2023 08:19
@mkaput mkaput force-pushed the spr/main/f7f37d16 branch from 3683911 to 480b179 Compare October 31, 2023 08:19
@mkaput mkaput force-pushed the spr/main/ebda97d6 branch from c825636 to b3e6ce2 Compare November 7, 2023 14:21
@mkaput mkaput force-pushed the spr/main/f7f37d16 branch 2 times, most recently from 5557402 to 44c62bf Compare November 8, 2023 08:57
@mkaput mkaput force-pushed the spr/main/ebda97d6 branch from b3e6ce2 to 06cecd1 Compare November 8, 2023 08:57
@mkaput mkaput force-pushed the spr/main/f7f37d16 branch from 44c62bf to 9b78cb8 Compare November 8, 2023 10:39
@mkaput mkaput mentioned this pull request Nov 9, 2023
@mkaput mkaput force-pushed the spr/main/f7f37d16 branch from 9b78cb8 to f445030 Compare November 9, 2023 15:25
github-merge-queue bot pushed a commit that referenced this pull request Nov 13, 2023
This PR lays groundwork for implementing caching of `RegistryClient`
instances.
It just sets up all the types and refactors, no caching is done yet.

There is also a small functional change: local registry client does not
print
`Unpacking` status in normal mode. This wasn't a big deal, and it
allowed removing
the `is_offline` method from `RegistryClient`.

---

**Stack**:
- #892
- #846
- #845
- #844
- #819
- #818
- #809
- #808⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*

Signed-off-by: Marek Kaput <marek.kaput@swmansion.com>
github-merge-queue bot pushed a commit that referenced this pull request Nov 13, 2023
NOTE: Nothing is cached actually yet, because no registry client uses
hooks provided by this code. This will come in subsequent PRs.

---

**Stack**:
- #892
- #846
- #845
- #844
- #819
- #818
- #809⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
github-merge-queue bot pushed a commit that referenced this pull request Nov 13, 2023
Signed-off-by: Marek Kaput <marek.kaput@swmansion.com>

---

**Stack**:
- #892
- #846
- #845
- #844
- #819
- #818⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
github-merge-queue bot pushed a commit that referenced this pull request Nov 16, 2023
Signed-off-by: Marek Kaput <marek.kaput@swmansion.com>

---

**Stack**:
- #909
- #906
- #892
- #846
- #845
- #844
- #819⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
Base automatically changed from spr/main/ebda97d6 to main November 16, 2023 10:31
github-merge-queue bot pushed a commit that referenced this pull request Nov 16, 2023
This data structure will be later used in Tokio-based code which writes
to the file protected by this guard.

Signed-off-by: Marek Kaput <marek.kaput@swmansion.com>

---

**Stack**:
- #909
- #906
- #892
- #846
- #845
- #844⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
This surprisingly small addition required some bigger changes. Filesystems are now lifetime-unbound, and rely on internal `Arc`s instead of references. Technically this means higher heap pressure and slower code due to increased use of atomics, but `Filesystem`s are by nature not part of hot paths, so this is fine.

Signed-off-by: Marek Kaput <marek.kaput@swmansion.com>

commit-id:f7f37d16
@mkaput mkaput enabled auto-merge November 16, 2023 10:40
@mkaput mkaput added this pull request to the merge queue Nov 16, 2023
Merged via the queue into main with commit 27e6b1d Nov 16, 2023
11 checks passed
@mkaput mkaput deleted the spr/main/f7f37d16 branch November 16, 2023 10:53
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