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

high memory usage resulting in gc and slower processing coz of {}interface #49

Open
hiqsociety opened this issue Jul 19, 2021 · 1 comment

Comments

@hiqsociety
Copy link

possible to make the {}interface to []byte?
it's the accepting / connector / listening to incoming req part.

u can try memory profiling to see what i mean.

@tidwall
Copy link
Owner

tidwall commented Mar 22, 2022

Do you mean the interface{} used for the context param?

If so, for my use case I use an application specific objects, that is typically a pointer to an object. Changing this to a []byte type will not allow me to store a pointer as a context.

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