xmp2xml: Performance optimization (speedup 60%).
xmp2xml: Performance optimization (speedup 60%).

Extracted relevant parts from exifr and xmp.

blackwinter/scratch,blackwinter/scratch,blackwinter/scratch,blackwinter/scratch