Reading a tag off an image unnecessarily re-writes its value(s)

Bug #582445 reported by Olivier Tilloy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyexiv2
Fix Released
High
Olivier Tilloy

Bug Description

This is mostly a code issue, possibly leading to poor performances when reading a tag off an image.
When a tag is read off an image, pyexiv2's internal machinery calls the corresponding static method called {Exif,Iptc,Xmp}Tag._from_existing_tag(...).

Example code path for an IPTC tag:
This sets the raw values of the newly created tag, which calls self._set_raw_values(...), which in turn calls self._tag._setRawValues(...), resetting the raw values of the tag, which is totally unnecessary, and potentially impairs the performances.

Olivier Tilloy (osomon)
Changed in pyexiv2:
status: Confirmed → In Progress
status: In Progress → Fix Committed
Olivier Tilloy (osomon)
Changed in pyexiv2:
milestone: none → 0.2.2
Olivier Tilloy (osomon)
Changed in pyexiv2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.