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

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

Merged

Conversation

eseliger
Copy link
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
10 of 14 checks passed
@eseliger eseliger deleted the es/05-10-gitservermakereaddirreturnaniteratoronclientside branch May 13, 2024 12:24
Copy link
Member Author

Merge activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.

None yet

2 participants