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

x/text/cmd/gotext: update command too slow #49039

Open
linggao opened this issue Oct 18, 2021 · 1 comment
Open

x/text/cmd/gotext: update command too slow #49039

linggao opened this issue Oct 18, 2021 · 1 comment

Comments

@linggao
Copy link

@linggao linggao commented Oct 18, 2021

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

$ go version
go version go1.16 linux/amd64

Does this issue reproduce with the latest release?

Yes

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

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/go/src/github.com/open-horizon/anax/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build538988283=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Ran the following command:
$GOPATH/bin/gotext -srclang=en update -out=i18n_messages/catalog.go -lang=en,zh_CN,zh_TW,fr,de,it,ja,pt_BR,es,ko 2>&1
It took between 30 to 40 minutes on my vm that has 8G memory, 2.1GH dual CPU and 100G disk space.
There are about 2000 messages need to be translated in the code. 9 languages + english.
Here is our repo: https://github.com/open-horizon/anax

What did you expect to see?

We expect this should be finished within a few minutes.

What did you see instead?

It takes 30 to 40 minutes.

@seankhliao seankhliao changed the title gotext update command too slow x/text/cmd/gotext: update command too slow Oct 18, 2021
@gopherbot gopherbot added this to the Unreleased milestone Oct 18, 2021
@cherrymui
Copy link
Contributor

@cherrymui cherrymui commented Oct 18, 2021

cc @mpvl

Loading

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

Successfully merging a pull request may close this issue.

None yet
3 participants