Forum Discussion

ddewit's avatar
ddewit
New Contributor
4 years ago

v2 is way slower than v1

I hoped the v2 CLI integrated with 1Password Desktop would give us better performance than the v1 CLI, but it is actually more than twice as slow to search for a random item.

```

v1.9.0

$ time op get item 'some random item'
real 0m2.880s
user 0m0.870s
sys 0m0.144s

v2.0.0

$ time /usr/bin/op item get 'some random item'
real 0m6.151s
user 0m0.967s
sys 0m0.189s
```

Is this expected?


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided

3 Replies

  • Former Member's avatar
    Former Member

    That is great feedback, thank you! We're looking into it!

  • ddewit's avatar
    ddewit
    New Contributor

    Hi @"Horia.Culea_1P"! Great that you are looking into this. I actually tried the --cache flag, it made things better, but still slower than the old CLI.

  • Former Member's avatar
    Former Member

    Hey ddewit, thanks for reporting this!
    We are aware of this issue, and we currently have it under investigation. We hope to roll out an optimisation soon.
    We'll make sure to keep you posted in this thread!
    In the meantime, have you tried using the --cache flag, enabling the CLI cache? This may help the situation.

    Please, do let us know if you have any more feedback!
    Best,
    Horia