liteide icon indicating copy to clipboard operation
liteide copied to clipboard

the find usage function is very slow. 执行“查找使用”右键菜单功能太慢了,执行一次要50秒以上

Open gweichao opened this issue 1 year ago • 1 comments

Please answer these questions before submitting your issue. Thanks! Please download LiteIDE latest version and test before submitting your issue. Thanks!

What version of LiteIDE are you using (LiteIDE About - Version and Build Qt Version)?

liteidex38.3-win64-qt5.15.2

What version of Go are you using (go version)?

I have tested in go1.13.15, go1.14.15,go1.15.15,go1.21.6,go1.22.2

What operating system and processor architecture are you using(go env)?

windows 10 enterprise edition and windows 11, i7 $ go env set GO111MODULE=on set GOARCH=amd64 set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOOS=windows set GOPROXY=https://goproxy.cn,direct set GOSUMDB=sum.golang.org set GOTOOLCHAIN=auto set GOTOOLDIR=c:\go\pkg\tool\windows_amd64 set GOVERSION=go1.21.6 set GCCGO=gccgo set GOAMD64=v1 set AR=ar set CC=gcc set CXX=g++ set CGO_ENABLED=0 set GOMOD=NUL set CGO_CFLAGS=-O2 -g set CGO_CPPFLAGS= set CGO_CXXFLAGS=-O2 -g set CGO_FFLAGS=-O2 -g set CGO_LDFLAGS=-O2 -g set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=D:\temp\go-build3894200232=/tmp/go-build -gno-record-gcc-switches

What did you do?

double to select a function name, and then run the right click menu function of find usage. If possible, provide a recipe for reproducing the error.

What did you expect to see?

return the search result in 1-2 seconds.

What did you see instead?

it take me more than 50 seconds

gweichao avatar Jun 21 '24 01:06 gweichao

I confirm the problem of slow "Find Usages (Module) Ctrl+Alt+U" on go1.23.1 too. It looks like the "Find Usages..." slowed down a lot when LiteIDE was migrated from ver x36.3 to ver 37.1. In ver x36.3 and earlier, only gotools.exe was used for search and it worked fast. In ver 37.1 and later, the search is additionally used several go.exe-processes and it all works slowly. Screenshot_1 Screenshot_2 LiteIDE is a great app! I would not like to leave it...

vladimirfilin avatar Sep 14 '24 20:09 vladimirfilin