
简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
google tcmalloc 内存池(不定长内存池)使用
一.安装tcmalloc (google-perftools) 是用于优化C++写的多线程应用tcmalloc在gperftools之中,故想要使用tcmalloc,就得先安装gperftools。在linux下,其安装步骤如下:1 tar xzvf gperftools-2.7.tar.gz2 cd gperftools-2.73 ./configure –enable-fr...
linux 读取Ini文件类
Linux下读取Ini文件类最近项目上有需要读取Ini文件 所谓Ini文件也就是文本文档 并且以//注释1/*注释2[Section]Key1=aaaKey2=bbb这种形式存在的文档自己编写了一个类 比较使用 简单 可以跨平台读写INI文件头文件Ini.h[cpp] view plain copy print?#include <map> #include <string>
protobuf:常用序列化/反序列化接口
C数组的序列化和反序列化#include "addressbook.pb.h"#include <iostream>using namespace std;/*//C数组的序列化和序列化API//在/usr/local/include/google/目录下,查找包含"SerializeToArray"所有的文件,同时打印所在行//sudo grep "Serialize...
到底了







