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

CLI displaying help or version performance #269

Closed
sstrehlk opened this issue Jun 1, 2021 · 1 comment · Fixed by #306
Closed

CLI displaying help or version performance #269

sstrehlk opened this issue Jun 1, 2021 · 1 comment · Fixed by #306

Comments

@sstrehlk
Copy link
Contributor

sstrehlk commented Jun 1, 2021

Long processing of informative functions, like displaying help message or version.

Steps to reproduce:
Run
datum -h
or
datum --version

Expected result:
Informative answer should be in relatively short, not annoying time (less than 0.5sec). For example for pip, pytest, numpy, tensorflow, pycocotools displaying version takes less than 0.3 sec and often less than 0.2sec.

Current result:
Displaying CLI help message or version takes more than 3 sec.

for i in {1..5}; do time datum --version; done
0.1.8

real    0m3.391s
user    0m3.281s
sys     0m1.127s
0.1.8

real    0m3.408s
user    0m3.246s
sys     0m1.166s
0.1.8

real    0m3.478s
user    0m3.368s
sys     0m1.114s
0.1.8

real    0m3.452s
user    0m3.353s
sys     0m1.103s
0.1.8

real    0m3.504s
user    0m3.379s
sys     0m1.133s
@zhiltsov-max
Copy link
Contributor

Will be resolved by #146

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

Successfully merging a pull request may close this issue.

2 participants