HomeSoftware Heritage

Only hit the database once for directory listings
6ee2851fedccUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Only hit the database once for directory listings

Summary:
We used to call the database twice for directory listings. We now
special-case the empty directory, which allows us to only call the database
once, saving one round trip on the most used query.

Test Plan: Unit tests updated

Reviewers: anlambert, Reviewers!

Differential Revision: https://forge.softwareheritage.org/D337

Details

Provenance
olasdAuthored on May 31 2018, 6:23 PM
olasdPushed on May 31 2018, 6:33 PM
Differential Revision
D337: Only hit the database once for directory listings

Commit No Longer Exists

This commit no longer exists in the repository.