Closed ryan961 closed 10 months ago
maybe you could try the Pretouch
to reduce the cpu/memory usage spike. More details can be found in Readme https://github.com/bytedance/sonic#pretouch
You can lower sonic version <1.10 but it's not recommended... Why does building memory usage matter to you?
Thanks for the reply. I checked the Pretouch
mentioned above, but in my project I only use sonic.Unmarshal
in one or two API interface places, which should not be the huge schema described in the doc.
Our current CI/CD pipeline is probably outdated, we directly go build on the demo machine. But the memory change caused by whether using sonic
is too big, which makes the build basically get signal: killed
.
Go version: 1.21.3 Sonic version: v1.10.2
Go 1.21.3 build memory usage spike when using
sonic
,htop
showsgithub.com/chenzhuoyu/iasm
takes most memory. Tried lowering go version but still the same problem, finally removingsonic
resolves it.