Copyright © 2026 Unity Technologies
Duplicate of UUM-12947
The solution for this performance problem is to use the inotify linux kernel interface to build a cache of known lower case to real case mappings, as otherwise we have to exhaustively search for the real case when a case-incorrect path is provided by the user and/or Unity itself. Since this is really a feature request, we need to do more QA work to ensure we don't cause regressions. As such for now, this fix is being provided to the customer as a prototype on the 2023.1 branch only.
The solution for this performance problem is to use the inotify linux kernel interface to build a cache of known lower case to real case mappings, as otherwise we have to exhaustively search for the real case when a case-incorrect path is provided by the user and/or Unity itself. Since this is really a feature request, we need to do more QA work to ensure we don't cause regressions. As such for now, this fix is being provided to the customer as a prototype on the 2023.1 branch only.
How to reproduce:
1. Open the user attached project (FurnitureLoadingUnityProject.zip)
2. Open the scene "CacheTest.unity"
3. Enter PlayMode and wait until the Console outputs "Bye" or the 5th stage throws errors (if errors are thrown on the second or fourth stage leave and reenter PlayMode)
4. Open the "EmptyCache" and "FullCache" files, created in the root of the project directory, in the Profiler and pull them into the Profile Analyzer
5. Compare the data and observe the timing differences of "File.Open", "File.Read" and "File.Write" operations
Expected result: There's little to no difference in "File" operation performance
Actual result: The "File" operations are slower when the cache is full
Reproducible with: 2019.4.28f1, 2020.3.13f1, 2021.1.13f1, 2021.2.0b1
Couldn't test with: 2018.4.35f1 (Doesn't run the reproduction scripts due to missing required packages)
Notes:
1. Reproducible on Ubuntu 18.04
2. Not reproducible on Windows 10
Issues you vote on will appear here