Relative Content

Tag Archive for gopointersmemory-managementinterfaceheap

Pointer versus Interface

why the result of calling by pointer and interface are different? calling by interface takes heap memory and is so slow., while calling by pointer is extremely fast without engaging by Heap.
The following codes benchmarks shows difference clearly. Naturally I expect the result be same. but is different completely.