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

perf(connect): Delay connector layer initialization to improve performance #408

Merged
merged 3 commits into from
Feb 8, 2025

Conversation

0x676e67
Copy link
Owner

@0x676e67 0x676e67 commented Feb 8, 2025

Change the initialization of connector_layers to lazy initialization when used to avoid initialization when not necessary, thereby optimizing performance.

  • Modify the connector_layer method of ClientBuilder so that it initializes connector_layers only when it is called for the first time.
  • In this way, unnecessary memory allocation and initialization operations are reduced, improving performance.

@0x676e67 0x676e67 merged commit 4903458 into main Feb 8, 2025
4 checks passed
@0x676e67 0x676e67 deleted the perf branch February 8, 2025 08:03
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.

1 participant