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

Why is the gf command-line client so slow! #3129

Closed
svea-vip opened this issue Nov 3, 2023 · 1 comment · Fixed by #3134
Closed

Why is the gf command-line client so slow! #3129

svea-vip opened this issue Nov 3, 2023 · 1 comment · Fixed by #3134

Comments

@svea-vip
Copy link

svea-vip commented Nov 3, 2023

d:>echo '%date% %time%'
'2023-11-03 16:23:14.02'

d:>gf -v
GoFrame CLI Tool v2.5.6, https://goframe.org
GoFrame Version: cannot find go.mod
CLI Installed At: C:\Users\XXX\go\bin\gf.exe
CLI Built Detail:
Go Version: go1.20.8
GF Version: v2.5.6
Git Commit: 2023-10-24 10:02:04 bcb479a
Build Time: 2023-10-24 10:04:35

d:>echo '%date% %time%'
'2023-11-03 16:23:49.17'

It took over 30 seconds to print the version number

@hailaz
Copy link
Member

hailaz commented Nov 3, 2023

我认为和工具的init函数有关,工具包含了很多init。
image

oldme-git added a commit to oldme-git/gf that referenced this issue Nov 6, 2023
gqcn pushed a commit that referenced this issue Nov 6, 2023
@hailaz hailaz closed this as completed Nov 10, 2023
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