HomeSoftware Heritage

Only hit the database once for directory listings

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, 9:18 PM
Differential Revision
D337: Only hit the database once for directory listings
Parents
rDWAPPSd1d1419ebdd2: browse: Slightly improve stylesheets and design
Branches
Unknown
Tags
Unknown