see https://go101.org/q-and-a/make-dirty-byte-slices.html
On Tuesday, January 14, 2025 at 9:44:40 PM UTC+8 Vasiliy Tolstov wrote: > Hi! I'm try to search answers but have no luck. In go i can create > memory arena/ buffer pool etc.. > But does it possible to get memory with like make([]byte, XXX) but > without calloc for this memory? > > So i need to get raw memory from kernel without spending time to clearing > it. > > -- > Vasiliy Tolstov, > e-mail: v.to...@selfip.ru > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/c3473a74-abdd-4870-a453-c9a6b5b635cbn%40googlegroups.com.