drewnoakes / metadata-extractor

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Apache License 2.0
2.57k stars 481 forks source link

Replace number formatting code #655

Open drewnoakes opened 8 months ago

drewnoakes commented 8 months ago

This number formatting method seems a bit wild.

https://github.com/drewnoakes/metadata-extractor/blob/b19ac0637ff1481bed8029130a9e8669267b4980/Source/com/drew/metadata/icc/IccDescriptor.java#L227-L246

In the .NET library, the equivalent code was standing out as a performance issue in traces.

https://github.com/drewnoakes/metadata-extractor-dotnet/pull/403

We should find a suitable replacement. Ideally something built-in.