Significant storage overhead
I’m assuming this is an issue somewhere, either with the reporting in the app or with how files are stored.
Amperfy itself reports less than 120 GB for cached songs, but the total app data as reported by settings is more than 170 GB. I know there’s always going to be a difference because the app data isn’t only used for cached songs, but a 50+ GB difference seems to indicate an issue somewhere. Apologies if this is expected behaviour.
Hi @el-tiuri,
I'm trying to narrow down the issue. I'm not sure yet, if this is a bug in Amperfy or an iOS bug. Could you try to clear the download cache in Amperfy and redownload your whole library? Is the storage reported correctly in this case? If so, then this would indicate, that Amperfy does not delete songs from the cache, that it should delete.
@BLeeEZ Do you know what the difference is between fileSizeKey, totalFileSizeKey, fileAllocatedSizeKey and totalFileAllocatedSizeKey. The allocated keys report a bigger memory footprint. Amperfy uses fileSizeKey, which reports a smaller memory consumption. Some projects seem to use the allocated keys, while others use the normal size keys. Apples documentation is not helpful at all.
I’ll try to do this on a secondary device. I have a lot of music downloaded on my phone (as you can see), and I’d like to avoid downloading all of it again.
What I can tell you with certainty is that removing downloaded music at the very least does something, because I occasionally delete music to make space on my device, which does increase available storage space. I’ll try to make some time this weekend to investigate a bit more.
The App size in iOS settings contains all data in the App folder. This includes Artworks, lyrics, mp3 embedded artworks, database and of course downloaded songs/podcast episodes. I would assume that the core data database file alone is quite big in your case. Artworks can sum up fast too. If this explains the 50 GB difference, I don’t know. I guess some further investigation is necessary.
Do you wish a row in Amperfy library settings to get the total App size displayed?
I don't know if this is related, but on macOS I'm seeing all my cached artwork stored at the original size, and twice for each file. Once with a _0 suffix and once with a random 8-digit ID like _5c12f280.
Since I get my cover art from various sources, some of them (like from the iTunes store) can go up to ±20 MB, which means 40 MB in artwork for a single release. That adds up very quickly for larger libraries.
Would it not make sense to store it in cache only once, and then at a smaller resized/optimized size?