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

Fix slow Segment calls #1013

Merged
merged 1 commit into from
Aug 15, 2022
Merged

Fix slow Segment calls #1013

merged 1 commit into from
Aug 15, 2022

Conversation

itegulov
Copy link
Contributor

Apparently, making identify calls is very expensive, and Segment documentation suggests to only do it once (when user signs up, logs in etc). I think we should be fine without making identify calls at all as alias is doing the same thing in our specific use case.

Reduces near view-state accountname.testnet --finality final execution time from 10s to <1s on my machine.

@itegulov itegulov requested a review from volovyks August 11, 2022 07:21
@volovyks volovyks merged commit 5f8adf4 into master Aug 15, 2022
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.

2 participants