tidwall / redcon

Redis compatible server framework for Go
MIT License
2.16k stars 159 forks source link

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

Open hiqsociety opened 3 years ago

hiqsociety commented 3 years ago

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 commented 2 years ago

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.