Hi!
Recently we’ve noticed that in certain scenarios we had very substantial freezes on IOS devices. I’ve investigated it and found that it was caused by FIOSPlatformMisc::GetDiskTotalAndFreeSpace which we called multiple times in such scenarios Specifically it was a call to NSURLVolumeAvailableCapacityForImportantUsageKey which at least on some IOS devices takes around 70ms. Additionally it seems like it’s wrong to use this method since it returns not space which is currently free but space which may be freed by removal of some temporary files. So in order to fix it I replaced call to NSURLVolumeAvailableCapacityForImportantUsageKey with NSURLVolumeAvailableCapacityKey which is very fast. Is it ok to do so or maybe there were some reasong to use NSURLVolumeAvailableCapacityForImportantUsageKey specifically?