Great speed differ between different SD mount points
Posted: 2023-08-10, 23:29 UTC
Android 13. App version 3.42d
If primary storage is set to /storage/emulated/0(default config) - there will be problems with file operations. Move will freeze for about 1 second, delete will sometimes ask to remount / rw and freeze forever e.t.c
BUT
If I'll set primary storage path to /sdcard - everything will work blazing fast, no problems at all.
/sdcard is symlink to /storage/self/primary which is also symlink to /storage/emulated/0, so the should work absutely same.
Seems that we have some slow path-based checks in code
If primary storage is set to /storage/emulated/0(default config) - there will be problems with file operations. Move will freeze for about 1 second, delete will sometimes ask to remount / rw and freeze forever e.t.c
BUT
If I'll set primary storage path to /sdcard - everything will work blazing fast, no problems at all.
/sdcard is symlink to /storage/self/primary which is also symlink to /storage/emulated/0, so the should work absutely same.
Seems that we have some slow path-based checks in code