1. STL容器简介 STL提供了很多泛型容器,如vector,list和map。程序员在使用这些容器时只需关心何时往容器内塞对象,而不用关心如何管理内存,需要用多少内存,这些STL容器极大地方便了C++程序的编写。例如可以通过以下语句创建一个vector,它实际上是一个按需增长的动态数组,其每个元 ...
分类:
其他好文 时间:
2017-06-06 20:41:19
阅读次数:
141
ELK架构:elasticsearch+kibana+filebeat版本信息:elasticsearch5.2.1kibana5.2.1filebeat6.0.0(预览版)今天在进行ELK测试的时候,在kibana上面discover无论那个index,发现均会报错:[request]Datatoolarge,datafor[<agg[2]>]wouldbelargerthanlimitof并且在elasticsea..
分类:
Web程序 时间:
2017-05-16 23:19:02
阅读次数:
1228
#include<stack> #include<utility> #include<allocators> #include<functional> using std::pair; using std::allocator; using std::less; using std::stack; ...
分类:
编程语言 时间:
2017-05-14 10:40:06
阅读次数:
216
将以上空间配置器 m_allocator::_m_alloctor应用于程序中,只能有限度搭配PJ STL 和RW STL(两种不同版本STL源码),因为PJ STL未完全遵循STL规格,其所供应的许多容器都需要一个非标准的空间配置器接口allocator::_Charalloc(), 而RW ST ...
分类:
其他好文 时间:
2017-05-02 18:16:37
阅读次数:
168
http://thinkiii.blogspot.jp/2014/02/debug-with-slub-allocator.html The slub allocator in Linux has useful debug features. Such as poisoning, readzone ...
分类:
系统相关 时间:
2017-04-28 23:51:16
阅读次数:
421
问题引出: import pandas import pandas as pd iris = pd.read_csv('iris.csv') by_species = iris.groupby('Species') def f(x): ...: print type(x) ...: print x.... ...
分类:
移动开发 时间:
2017-04-22 12:38:54
阅读次数:
1645
第二部分 源码 基于 Go 1.4,相关文件位于 src/runtime 目录。文章忽略了 32bit 代码,有兴趣的可自行查看源码文件。为便于阅读,示例代码做过裁剪。 1. Memory Allocator Go 内存分配器基于 tcmalloc 模型,这在 malloc.h 头部注释中有明确说明 ...
分类:
其他好文 时间:
2017-04-21 17:25:50
阅读次数:
297
说明:本文仅供学习交流,转载请标明出处,欢迎转载! STL中与内存配置相关的类是allocator类,头文件为:#include<alllocator>这是一个模板类,用于内存的分配、对象的构造、对象的析构和空间的删除。本文主要介绍下相关的函数。 内存空间的分配:allocate函数 allocat ...
分类:
其他好文 时间:
2017-04-12 18:29:52
阅读次数:
141
1. JVM 优化(Tomcat 启动行参数) Linux 修改 catalin.sh Windows 修改 catalin.bat Linux系统中tomcat的启动参数 export JAVA_OPTS="-server -Xms1400M -Xmx1400M -Xss512k -XX:+Agg ...
分类:
其他好文 时间:
2017-03-28 10:59:46
阅读次数:
207
install: official examples: https://seaborn.pydata.org/examples/index.html 在mac上的bug: 在mac上运行会出现warnings.warn("tight_layout : falling back to Agg rend ...
分类:
编程语言 时间:
2017-03-25 18:57:02
阅读次数:
242