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

Decrease the time for the cli app to do things #491

Merged
merged 2 commits into from
Mar 29, 2019

Conversation

waterkip
Copy link
Contributor

When the local blob version and the remote version are the same skip
downloading a new blob and just continue with the current blob. This
could potentially shave 300ms (or more, I've seen close to 2 seconds in
my browser) when the blob hasn't been updated on the remote side.

There is still a small performance hit on login_check.php but I cannot
think of logical ways why we would increase the timeout, the 5 seconds
that is place now make sense to me as you want to display things. Maybe
there should be a post action on any command that has --sync=auto so
subsequent calls have a blob in sync and would cause slowness of the CLI
app.

Fixes: #475
Signed-off-by: Wesley Schwengle wesley@schwengle.net

@waterkip waterkip force-pushed the gh-475-decrease_display_time branch from 0e41115 to 52e0f85 Compare March 20, 2019 18:59
@GPaulovics GPaulovics force-pushed the master branch 2 times, most recently from 0ec9d7a to 60d9968 Compare March 22, 2019 12:00
When the local blob version and the remote version are the same skip
downloading a new blob and just continue with the current blob.
This could potentially shave 300ms (or more, I've seen close to 2
seconds in my browser) when the blob hasn't been updated on the remote
side.

There is still a small performance hit on `login_check.php` but I
cannot think of logical ways why we would increase the timeout, the 5
seconds that is place now make sense to me as you want to display
things. Maybe there should be a post action on any command that has
`--sync=auto` so subsequent calls have a blob in sync and would cause
slowness of the CLI app.

Fixes: lastpass#475
Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
@waterkip waterkip force-pushed the gh-475-decrease_display_time branch from 52e0f85 to 37800a9 Compare March 26, 2019 09:16
@GPaulovics GPaulovics merged commit 81ed15c into lastpass:master Mar 29, 2019
@waterkip waterkip deleted the gh-475-decrease_display_time branch March 29, 2019 12:34
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.

Interface is extremely slow - bug or feature?
2 participants