Running the Tahoe CLI takes 400+ milliseconds just to start #4067

Open
opened 2023-09-25 15:07:52 +00:00 by itamarst · 0 comments

This may or may not be a priority, but basic tahoe commands take a while to start. Profiling suggests this is just due to code imports.

The ~400ms is from a i7-12700k, so a very fast CPU core. A large percentage of computers will be rather slower.

For many use cases this is OK. If you're doing heavy scripting with `tahoe get' or something this will add up.

Potential solutions are:

  • Something like PyOxidizer, which is designed to package up Python CLIs in ways that make them start faster.
  • Rewrite the CLI with a different, faster language?
This may or may not be a priority, but basic `tahoe` commands take a while to start. Profiling suggests this is just due to code imports. The ~400ms is from a i7-12700k, so a very fast CPU core. A large percentage of computers will be rather slower. For many use cases this is OK. If you're doing heavy scripting with `tahoe get' or something this will add up. Potential solutions are: * Something like [PyOxidizer](wiki/PyOxidizer), which is designed to package up Python CLIs in ways that make them start faster. * Rewrite the CLI with a different, faster language?
itamarst added the
unknown
normal
defect
n/a
labels 2023-09-25 15:07:52 +00:00
itamarst added this to the Performance and Benchmarking milestone 2023-09-25 15:07:52 +00:00
Sign in to join this conversation.
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#4067
No description provided.