Skip to content

pin: follow async pinner changes#9859

Merged
Jorropo merged 3 commits into
ipfs:masterfrom
MichaelMure:streamed-pins2
Jun 2, 2023
Merged

pin: follow async pinner changes#9859
Jorropo merged 3 commits into
ipfs:masterfrom
MichaelMure:streamed-pins2

Conversation

@MichaelMure

Copy link
Copy Markdown
Contributor

See ipfs/boxo#290

This PR follow the changes in the Pinner to make listing recursive and direct pins asynchronous, which in turns allow pin/ls to build and emit results without having to wait anything, or accumulate too much in memory.

Note: there is a tradeoff for pin/ls?type=all:

  • keep the recursive pins in memory (which I chose)
  • ask the pinner twice for the recursive pins, and limit memory usage

Also, follow the changes in the GC with similar benefit of not having to wait the full pin list. Add a test.
Also, follow the changes in pin.Verify.

replace #9692

@MichaelMure MichaelMure requested a review from a team as a code owner May 5, 2023 15:02
See ipfs/boxo#290

This PR follow the changes in the Pinner to make listing recursive and direct pins asynchronous, which in turns allow pin/ls to build and emit results without having to wait anything, or accumulate too much in memory.

Note: there is a tradeoff for pin/ls?type=all:
- keep the recursive pins in memory (which I chose)
- ask the pinner twice for the recursive pins, and limit memory usage

Also, follow the changes in the GC with similar benefit of not having to wait the full pin list. Add a test.
Also, follow the changes in pin.Verify.
@BigLep BigLep requested a review from Jorropo May 5, 2023 17:28
@BigLep

BigLep commented May 25, 2023

Copy link
Copy Markdown
Contributor

This will get included with 0.21 per ipfs/boxo#290 (comment)

@BigLep BigLep mentioned this pull request May 30, 2023
@Jorropo Jorropo force-pushed the streamed-pins2 branch 4 times, most recently from de63278 to 06588e7 Compare June 2, 2023 14:52
@Jorropo Jorropo enabled auto-merge (rebase) June 2, 2023 14:53
@Jorropo Jorropo disabled auto-merge June 2, 2023 14:53
@Jorropo Jorropo enabled auto-merge June 2, 2023 14:54
@Jorropo Jorropo disabled auto-merge June 2, 2023 15:15
@Jorropo

Jorropo commented Jun 2, 2023

Copy link
Copy Markdown
Contributor

It WORks oN My MAchiNe.

😭 it did not, incorrect caching (it was running with the wrong kubo bin)

@Jorropo Jorropo merged commit 8f0359a into ipfs:master Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants