Project

General

Profile

Bug #1374

excessively often calls stat()

Added by Johannes Berg about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
basicio
Target version:
Start date:
03 Nov 2018
Due date:
% Done:

100%

Estimated time:
6.00 h

Description

I've found that when reading PNG files, (lib)exiv2 calls stat() excessively often:

$ strace -e stat exiv2 /path/to/image.png 2>&1|grep stat|wc -l
7265

Yes, the file in question is 114MB, but there's no good reason to call stat() on it over and over since it's unlikely to change in the time it takes to read :-)
(also, given the various relatively reason security mitigations, doing syscalls has gotten slower)

History

#1

Updated by Robin Mills about 3 years ago

  • Category set to basicio
  • Status changed from New to Closed
  • Assignee set to Robin Mills
  • Target version set to 0.27
  • % Done changed from 0 to 100
  • Estimated time set to 6.00 h

Discussion of this has been moved to: https://github.com/Exiv2/exiv2/issues/515

This matter will get attention in Exiv2 v0.28. I'm closing it here on Redmine.

Also available in: Atom PDF