Commit 44685341 authored by Mateusz Żebrak's avatar Mateusz Żebrak
Browse files

Cache ProfileStorageBase.get_this_revision

Previously measured during `clive show profiles`:

```
get_this_revision for <class 'clive.__private.storage.migrations.v0.ProfileStorageModel'> took 0.013s.
get_this_revision for <class 'clive.__private.storage.migrations.v0.ProfileStorageModel'> took 0.007s.
get_this_revision for <class 'clive.__private.storage.migrations.v0.ProfileStorageModel'> took 0.008s.
get_this_revision for <class 'clive.__private.storage.migrations.v1.ProfileStorageModel'> took 0.007s.
get_this_revision for <class 'clive.__private.storage.migrations.v1.ProfileStorageModel'> took 0.007s.
get_this_revision for <class 'clive.__private.storage.migrations.v1.ProfileStorageModel'> took 0.007s.
get_this_revision for <class 'clive.__private.storage.migrations.v2.ProfileStorageModel'> took 0.007s.
get_this_revision for <class 'clive.__private.storage.migrations.v2.ProfileStorageModel'> took 0.007s.
get_this_revision for <class 'clive.__private.storage.migrations.v2.ProfileStorageModel'> took 0.007s.
```

Now:

```
get_this_revision for <class 'clive.__private.storage.migrations.v0.ProfileStorageModel'> took 0.013s.
get_this_revision for <class 'clive.__private.storage.migrations.v1.ProfileStorageModel'> took 0.008s.
get_this_revision for <class 'clive.__private.storage.migrations.v2.ProfileStorageModel'> took 0.007s.
```
parent 2baf9af7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment