tauri-action icon indicating copy to clipboard operation
tauri-action copied to clipboard

Slow loading time on first execution on app built with CI action

Open jourdain opened this issue 1 month ago • 2 comments

Hi All,

I'm currently building this app and when I bundle the application using my dev machine and distribute the DMG file, the initial startup is about 2s. When I use the DMG from the CI, the initial startup is 45s and subsequent one 2s.

Is there something I can do on the CI to get similar performance as my local build? So far, I'm really not sure to know why we have such difference (2s vs 45s). I don't know if it is related to the tauri toolchain or specific to the CI/machine setup.

Side note and additional context:

  • I'm working on macOS 26 with M2-max/M4 CPU
  • The application server (sidecar) is a Python application bundled using PyInstaller.
  • We do run the application once before bundling to compute any python cache so it should start fast the very first time too.

Thanks for any input/idea you may have,

Seb

jourdain avatar Oct 27 '25 20:10 jourdain

At first i thought this is some cache building but i don't see any files being written and since it resets back to 45 seconds on re-install this really can't be it anyway.

The only other thing that comes to mind is macOS' malware protection especially since it has 1gb of files to scan. It caches a list of files it already scanned which would explain the faster startup times but i thought it would scan "earlier", it's a bit surprising to see the loading screen. You could check that by doing this temporarily https://developer.apple.com/documentation/security/disabling-and-enabling-system-integrity-protection (i can't restart my machine rn)

p.s. i don't think this is related to this action, or even github ci.

FabianLars avatar Oct 27 '25 22:10 FabianLars

Thanks @FabianLars for your input... I'll see what I can figure out on my end and report back for knowledge sharing...

jourdain avatar Oct 27 '25 22:10 jourdain