What is the malloc threshold of Map object? How to modify it?

Technology CommunityCategory: GolangWhat is the malloc threshold of Map object? How to modify it?
VietMX Staff asked 3 years ago

The default limit is 128. It can be modified by changing the value of maxKeySize and maxValueSize in runtime.hashmap.