pezzo
pezzo copied to clipboard
The calling time of function pezzo.get_prompt() is too long
Proposal
Here is my code:
from pezzo.client import pezzo
import time
start_time = time.time()
res = pezzo.get_prompt("001")
duration = time.time() - start_time
print(duration)
res = pezzo.get_prompt("001")
duration = time.time() - start_time
print(duration)
res = pezzo.get_prompt("001")
duration = time.time() - start_time
print(duration)
Here is result:
1.151733636856079
2.3014795780181885
3.4458425045013428
The calling time of function pezzo.get_prompt() is too long. On average, it takes about a second to call and obtain a prompt. This speed is not suitable for production.
So where is the main time spent? Can you still optimize it, or is it mainly a problem with my network environment? I would like to know the average speed of your calls to rule out my personal network issues.
Use-Case
Optimize calling time.
Is this a feature you are interested in implementing yourself?
No
Hi @Undertone0809 I'll investigate this. Definitely shouldn't take so long! I'll try to tackle this today and share the benchmarks here before proceeding to a solution. Really appreciate you reporting this.