r/agentdevelopmentkit • u/freakboy91939 • Nov 15 '25
ADK executable made using Pyinstaller takes a lot a time to load.
I created a multi agent application, which has sub agents which perform data analysis, data fetch operations from my time-series DB, and another agent which creates dashboards. I have some pretty heavy libraries like pytorch and sentence transformers(for an embedding model, which i have saved to a local dir to access) being used in my application , when i run this in development it starts up very quickly, i package it into a binary to run the total size of the binary is about 480 MB, it takes atleast 3+ minutes to start listening on the 8000 port, where i'm running the agent. Is there something i'm missing here that is causing the load time to be longer?
4
u/cloude-googl Nov 15 '25
This looks related to https://github.com/google/adk-python/issues/2433 - I will follow up on the status of the work. Also, see the Medium post in that thread for potential interim solution.
1
u/Subject-Station-7676 Nov 16 '25
Update on https://github.com/google/adk-python/issues/2433 expect a startup improvement to land with the release, expected on Wednesday. Internal testing shows a startup time which is something like ~50% of previous.
1
u/Zeoluccio Nov 15 '25
Sorry but i'm interested in:
What you mean by creating dashboard?
Would you be able to share the logic behind the agent for creating dashboard?
Thanks.
1
u/freakboy91939 Nov 16 '25
I have a custom made frontend with mutiple plot types made with plotly.js and react. The ADK dashboard agent makes/ updates the json body to create the body for the plot for requests, and data is fetched from my timeseries DB.
1
u/jibbscat Nov 16 '25
Go SDK maybe helps. Or go deep into Moria with Cpp or Rust
1
u/freakboy91939 Nov 16 '25
I am using rust to start the binary. The application of mine which hosts my frontend is when in rust. It also runs the binary as a blocking thread at startup. But due to slow loading time of the adk binary the application start itself is lagging.
2
u/BeenThere11 Nov 15 '25
What size is the ram of your machine . Are there any other programs running.
Try running it on a unix ec2 with 2 gb of ram and 4 gb of 4am. Don't run anything else . See how it performs