09 2015 档案
摘要:tcmalloctcmalloc 优点速度更快,比glicbc 2.3 快占用更少的内存空间,8倍8-byte的对象内存分配中占用大约8N*1.01byte的头空间,而ptmalloc则会占用16N*byte的头空间使用在程序中只需使用“-ltmalloc”连接标识将其链接到程序中综述TCMallo...
阅读全文
摘要:Martini核心部分InjectorInjector模块总体构造injector对象:type injector struct { values map[reflect.Type]reflect.Value // 保存对 parent Injector}TypeMaper接口type TypeMapper interface { Map(interface{}) TypeMapper // 类...
阅读全文

浙公网安备 33010602011771号