ExifTool Forum

ExifTool => Developers => Topic started by: RhetTbull on June 29, 2022, 01:40:57 AM

Title: Any performance impacts of using -api LargeFileSupport=1?
Post by: RhetTbull on June 29, 2022, 01:40:57 AM
I am the author/maintainer of the https://github.com/RhetTbull/osxphotos (https://github.com/RhetTbull/osxphotos) tool which exports photos with associated metadata from Apple Photos.  osxphotos will optionally use exiftool to write metadata to the exported files or read metadata from files to use in it's template system (https://github.com/RhetTbull/osxphotos#template-system (https://github.com/RhetTbull/osxphotos#template-system)) for naming exported files.  A user recently pointed out that this fails if the file is > 4GB (which is rare but can happen for video files).  osxphotos calls exiftool from a custom python interface I created for this purpose (maintains a singleton exiftool subprocess for better performance).  The easiest fix for this issue appears to be including -api largefilesupport=1 in the parameters to exiftool.  Is there any performance impact of leaving this enabled all the time?  If so, I may want to check the file size of the photo/video in question and only enable this when needed.
Title: Re: Any performance impacts of using -api LargeFileSupport=1?
Post by: StarGeek on June 29, 2022, 01:45:06 AM
Take a look at this thread (https://exiftool.org/forum/index.php?topic=11906.0).
Title: Re: Any performance impacts of using -api LargeFileSupport=1?
Post by: RhetTbull on June 29, 2022, 09:15:31 AM
Perfect -- thanks! The tool in question runs only on macOS which appears to support large files in exiftool so I don't see any reason from that thread to not enable this by default.