摘要:
如果vector元素比较大,用push_back,会比较耗时 可以采用先push_back,在使用vector的引用 FastCodecs::DecoderMessage tmpdm ; getVecDM().push_back(tmpdm); FastCodecs::DecoderMessage& 阅读全文
posted @ 2020-09-09 10:03
苍洱
阅读(963)
评论(0)
推荐(0)
摘要:
dd if=/dev/zero of=50M.file bs=1M count=50 创建50M的文件 阅读全文
posted @ 2020-09-09 09:44
苍洱
阅读(305)
评论(0)
推荐(0)
摘要:
#include <sys/time.h> #include <string> #include <sys/mman.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #inc 阅读全文
posted @ 2020-09-09 09:24
苍洱
阅读(556)
评论(0)
推荐(0)
摘要:
demo测试映射文件1G1 映射1次,1写,进行memset操作,共享内存占1G2 映射2次,1写,1读,单线程 1) 1写,进行memset操作,读无操作,共享内存占1G 2) 1写,进行memset操作,读某个指定位置字符(len/2或len-1位置),共享内存占1G 3) 1写,进行memse 阅读全文
posted @ 2020-09-09 09:17
苍洱
阅读(534)
评论(0)
推荐(0)

浙公网安备 33010602011771号