ants
ants copied to clipboard
doing so to call invoke does a lot of memory allocations.
doing so to call invoke does a lot of memory allocations.
possible to replace {}Interface with [][]byte or something similar? coz the allocation generated by using panjf is rather unbearable in high use case.
var val [][]byte
val = append(val,[]byte{0})
val = append(val,[]byte{uint8(k)})
val = append(val,[]byte{uint8(v)})
val = append(val,[]byte{uint8(c)})
val = append(val,kX)
val = append(val,b)
pdbrpool.Invoke(&val)
Sorry, interface{} is for generic use cases, and why would it cause large memory allocation?
Closing it for inactivity