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

Optimize Token Fetching Logic in fetchAllExpiringTokens #3640

Open
coderabbitai bot opened this issue Oct 12, 2024 · 0 comments
Open

Optimize Token Fetching Logic in fetchAllExpiringTokens #3640

coderabbitai bot opened this issue Oct 12, 2024 · 0 comments
Assignees

Comments

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 12, 2024

Description:
The fetchAllExpiringTokens function currently concatenates arrays when fetching tokens in batches. For large numbers of tokens, this could consume significant memory. Consider using a generator function or processing each batch individually to optimize memory usage.

PR Reference: #3634

Comment Reference: #3634 (comment)

Requested by: @Baalmart

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

No branches or pull requests

1 participant