This commit is contained in:
Joey Hess 2015-02-15 14:29:27 -04:00
parent 3684e4d551
commit e79c3fff23

View file

@ -123,6 +123,11 @@ eg, esquelito.
Update2: Using esquelito to do a join got this down to 0.109s. Update2: Using esquelito to do a join got this down to 0.109s.
See `database` branch for code. See `database` branch for code.
Update3: Converting to a single un-normalized table for AssociatedFiles
avoids the join, and increased lookup speed to 0.087s. Of course, when
a key has multiple associated files, this will use more disk space, due
to not normalizing the key.
Compare the above with 1000 calls to `associatedFiles`, which is approximately Compare the above with 1000 calls to `associatedFiles`, which is approximately
as fast as just opening and reading 1000 files, so will take well under as fast as just opening and reading 1000 files, so will take well under
0.05s with a **cold** cache. 0.05s with a **cold** cache.