near / near-cli

General purpose command line tools for interacting with NEAR Protocol
https://docs.near.org
MIT License
193 stars 93 forks source link

Fix slow Segment calls #1013

Closed itegulov closed 2 years ago

itegulov commented 2 years ago

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.