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

太多内存占用 #702

Closed
Nyx2022 opened this issue Oct 18, 2024 · 2 comments
Closed

太多内存占用 #702

Nyx2022 opened this issue Oct 18, 2024 · 2 comments

Comments

@Nyx2022
Copy link

Nyx2022 commented Oct 18, 2024

image

我做的一个2分钟的火焰兔,可以看到, 我使用的是sonic的sonic.ConfigFastest.NewEncoder和 sync.pool的方式,但是内存占用还是这么高,建议优化一下。我使用的是sonic1.12.3版本+golang 1.23.2

@AsterDY
Copy link
Collaborator

AsterDY commented Oct 18, 2024

image
你这个是json.Marshaler里面自己调用的std,和sonic没关系。。

@AsterDY AsterDY closed this as completed Oct 18, 2024
@Nyx2022
Copy link
Author

Nyx2022 commented Oct 18, 2024

那这个怎么让强制使用sonic进行marshal呢

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

No branches or pull requests

2 participants