Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

gitserver: Make ReadDir return an iterator on client side#62602

Merged
eseliger merged 1 commit into
mainfrom
es/05-10-gitservermakereaddirreturnaniteratoronclientside
May 13, 2024
Merged

gitserver: Make ReadDir return an iterator on client side#62602
eseliger merged 1 commit into
mainfrom
es/05-10-gitservermakereaddirreturnaniteratoronclientside

Conversation

@eseliger

Copy link
Copy Markdown
Member

There is potentially a lot of FDs in a repo, so we return an iterator instead to encourage callers to consume it one by one and not load all of it into memory.

Test plan:

Existing tests still pass.

@github-actions github-actions Bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels May 10, 2024
@eseliger eseliger force-pushed the es/05-08-gitservermoveimplementationofhascommitaftertocaller branch from ba2b1e9 to 78320cc Compare May 10, 2024 20:16
@eseliger eseliger force-pushed the es/05-10-gitservermakereaddirreturnaniteratoronclientside branch 2 times, most recently from d630626 to 724a2e8 Compare May 10, 2024 20:25
@eseliger eseliger force-pushed the es/05-10-gitservermakereaddirreturnaniteratoronclientside branch 2 times, most recently from 0fff38b to ca7ccd8 Compare May 10, 2024 20:35
@eseliger eseliger force-pushed the es/05-08-gitservermoveimplementationofhascommitaftertocaller branch from 78320cc to 4585dee Compare May 10, 2024 22:25
@eseliger eseliger force-pushed the es/05-10-gitservermakereaddirreturnaniteratoronclientside branch from ca7ccd8 to 30fffe6 Compare May 10, 2024 22:25
@eseliger eseliger force-pushed the es/05-08-gitservermoveimplementationofhascommitaftertocaller branch from 4585dee to 65dc9a0 Compare May 10, 2024 22:30
@eseliger eseliger force-pushed the es/05-10-gitservermakereaddirreturnaniteratoronclientside branch 2 times, most recently from ebd8014 to c975ea1 Compare May 10, 2024 22:37
@eseliger eseliger force-pushed the es/05-08-gitservermoveimplementationofhascommitaftertocaller branch from 65dc9a0 to 7d13e41 Compare May 10, 2024 23:30
Base automatically changed from es/05-08-gitservermoveimplementationofhascommitaftertocaller to main May 10, 2024 23:36
@eseliger eseliger force-pushed the es/05-10-gitservermakereaddirreturnaniteratoronclientside branch from c975ea1 to 6c0847c Compare May 13, 2024 02:06
There is potentially a lot of FDs in a repo, so we return an iterator instead to encourage callers to consume it one by one and not load all of it into memory.

Test plan:

Existing tests still pass.
@eseliger eseliger force-pushed the es/05-10-gitservermakereaddirreturnaniteratoronclientside branch from 6c0847c to 76f8aca Compare May 13, 2024 03:37
@eseliger eseliger marked this pull request as ready for review May 13, 2024 03:45
@eseliger eseliger requested a review from a team May 13, 2024 03:45
@eseliger eseliger merged commit f852dd2 into main May 13, 2024
@eseliger eseliger deleted the es/05-10-gitservermakereaddirreturnaniteratoronclientside branch May 13, 2024 12:24

Copy link
Copy Markdown
Member Author

Merge activity

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants