Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicating .bundle files in memory with each .loadModels() call #300

Open
krotoff opened this issue Jan 31, 2025 · 2 comments
Open

Duplicating .bundle files in memory with each .loadModels() call #300

krotoff opened this issue Jan 31, 2025 · 2 comments

Comments

@krotoff
Copy link

krotoff commented Jan 31, 2025

Hello guys.

I have the next issue: I am calling .loadModels() on each launch of my app to make it ready to transcribe.
I have checked the behavior and found next things:

  1. Each call takes 3-20s
  2. After each call the size of my app raises for 150MB
  3. These 150MB is gained by at least two files:
  4. /Users/{my_user}/Library/Developer/CoreSimulator/Devices/{device-id}/data/Containers/Data/Application/{app-id}/Library/Caches/{app-bundle}/com.apple.e5rt.e5bundlecache/21F79/{everytime-new-id-1}/{everytime-new-id-2}.bundle (42MB)
  5. /Users/{my_user}/Library/Developer/CoreSimulator/Devices/{device-id}//data/Containers/Data/Application/{app-id}/Library/Caches/{app-bundle}/com.apple.e5rt.e5bundlecache/21F79/{everytime-new-id-3}/{everytime-new-id-4}.bundle 104MB

So each launch my app raises its size with 150MB+. Could you please help me with that?

Thank you.

@bpkeene
Copy link
Contributor

bpkeene commented Jan 31, 2025

Does this happen on real devices?

Simulator devices have a spoofed software stack that may not correlate with real device behavior, especially for cached artifacts such as those contained in com.apple.e5rt.e5bundlecache

@krotoff
Copy link
Author

krotoff commented Feb 1, 2025

Hi @bpkeene

Thanks for coming here. Yeah, it happens on real devices as well, each launch makes size of the app bigger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants