diff options
| author | Robin Burchell <robin.burchell@viroteck.net> | 2014-12-08 03:00:04 -0800 |
|---|---|---|
| committer | Robin Burchell <robin.burchell@viroteck.net> | 2014-12-10 14:08:44 +0100 |
| commit | 99e69dce78cee45fe1ff4ae9976f037e06424e32 (patch) | |
| tree | e6e0b80f5cf860fc5ca1bd7c3a3bbcc1137e7dbd /src/platformsupport/fontdatabases/basic/qbasicfontdatabase.cpp | |
| parent | 015002fec9abff6a4c1bb3fa4b9de87279a079c3 (diff) | |
QFileSystemEngineUnix: Don't stat before retrieving working path.
This is entirely unnecessary. If the path is bad, then getcwd and friends will
fail. Doing an extra stat imposes an extra performance overhead without reason.
Trivia: A dive into Qt's history shows that the stat dates back to:
Sat Aug 12 14:24:36 1995 +0100
The original purpose of the stat was to avoid calling getcwd unless the path had
actually changed. Subsequently, the caching was removed, but the stat remained.
Change-Id: Ia4598dc74ded36516b3e10e7ab0eb5a6a5690466
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/platformsupport/fontdatabases/basic/qbasicfontdatabase.cpp')
0 files changed, 0 insertions, 0 deletions
