E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
allocator
PooledByteBuf
Allocator
/* *Copyright2012TheNettyProject * *TheNettyProjectlicensesthisfiletoyouundertheApacheLicense, *version2.0(the"License");youmaynotusethisfileexceptincompliance *withtheLicense.YoumayobtainacopyoftheLi
yjh314
·
2014-12-16 22:00
UnpooledByteBuf
Allocator
/* *Copyright2012TheNettyProject * *TheNettyProjectlicensesthisfiletoyouundertheApacheLicense, *version2.0(the"License");youmaynotusethisfileexceptincompliance *withtheLicense.YoumayobtainacopyoftheLi
yjh314
·
2014-12-16 22:00
AbstractByteBuf
Allocator
/* *Copyright2012TheNettyProject * *TheNettyProjectlicensesthisfiletoyouundertheApacheLicense, *version2.0(the"License");youmaynotusethisfileexceptincompliance *withtheLicense.YoumayobtainacopyoftheLi
yjh314
·
2014-12-16 22:00
Netty5中ByteBuf对象的创建方式对内存的影响
现做简单的分析和整理:ByteBuf是netty中提供的一种数据结构,经过查看源代码发现,创建ByteBuf对象主要有两种方式:UnpooledByteBuf
Allocator
:默认的创建方式PooledByteBuf
Allocator
卟呐呢
·
2014-12-10 18:22
并发
ByteBuf
Netty5
程序
Netty5中ByteBuf对象的创建方式对内存的影响
现做简单的分析和整理:ByteBuf是netty中提供的一种数据结构,经过查看源代码发现,创建ByteBuf对象主要有两种方式:UnpooledByteBuf
Allocator
:默认的创建方式PooledByteBuf
Allocator
chushiyang1989
·
2014-12-10 18:22
并发
ByteBuf
netty5
Linux内核源码学习之 slab 分配器剖析
全文转自:https://www.ibm.com/developerworks/cn/linux/l-linux-slab-
allocator
/动态内存管理内存管理的目标是提供一种方法,为实现各种目的而在各个用户之间实现内存共享
aganlengzi
·
2014-12-09 10:00
linux
内存分配
linux内核
线性同余随机发生器
线性同余发生器伪随机数生成器 LCG 算法数学上基于公式:X(n + 1) = (a * X(n) + c) % m其中, 各系数为: 模m, m > 0 系数a, 0 >, class_Alloc=
allocator
cay22
·
2014-11-27 17:00
算法
map函数的基本操作
返回指定元素出现的次数empty()如果map为空则返回trueend()返回指向map末尾的迭代器equal_range()返回特殊条目的迭代器对erase()删除一个元素find()查找一个元素get_
allocator
codeforces
·
2014-11-27 17:25
那些年的ACM痕迹
错误问题:OpenGL version to old,GLViewinitWithRect(const stdbasic_stringchar,stdchar_traitschar,stdalloca
cocos2d::GLView::initWithRect(conststd::basic_string,std::
allocator
>&viewName,cocos2d::Rectrect,floatframeZoomFactor
toto1297488504
·
2014-11-27 02:00
std::hash_map的使用
hash_map的使用(基于VC2010) 一. std::hash_map的定义// std::hash_map的定义template>,//哈希比较器(里面也调用了普通的比较器) class_Alloc=
allocator
cay22
·
2014-11-25 17:00
std::map的使用
std::map的使用 一. std::map的定义// std::map 的定义template,//比较器 class_Alloc=
allocator
>>//内存分配器 classmap :public_Tree
cay22
·
2014-11-25 14:00
map
STL
key
比较器
stdmap
Linux内核最新的连续内存分配器(CMA)——避免预留大块内存
目前,MarekSzyprowski和MichalNazarewicz实现了一套全新的ContiguousMemory
Allocator
。通过这套机制,我们可以做到不预
liuxd3000
·
2014-11-19 18:00
Boost.Asio c++ 网络编程翻译(27)
另外,它有一些额外的方法,如下:streambuf([max_size,][
allocator
]):这个方法构造了一个streambuf对象。
mmoaay
·
2014-11-19 14:00
C++
异步
网络编程
boost
asio
MySQL系列:innodb源码分析之内存管理
以下是它的关系结构图:上图中的:ut_mem_block块是基础内存管理Buddy
allocator
是内存伙伴分配
u012935160
·
2014-11-10 20:00
c
mysql
InnoDB
内存池
伙伴分配器
dlmalloc 2.8.6 源码详解(1)
1980s年代编写.由于早期C库的内置分配器在某种程度上的缺陷,因此dlmalloc出现后立即获得了广泛应用,足见其出色的表现.尽管时至今日,dlmalloc中的技术在一些地方已然落后于时代,很多优秀的
allocator
vector03
·
2014-11-10 12:00
android
内存
malloc
内存管理
dlmalloc
td::string::find() 和 std::string::npos
npos是这样定义的:staticconstsize_type npos=-1; 因为string::size_type(由字符串配置器
allocator
zb872676223
·
2014-11-07 12:00
C++ STL
返回指定元素出现的次数empty()如果map为空则返回trueend()返回指向map末尾的迭代器equal_range()返回特殊条目的迭代器对erase()删除一个元素find()查找一个元素get_
allocator
u012774187
·
2014-11-03 11:00
C++ rapidjson的使用
include#include// 把数据写入json串 rapidjson::Documentdocument; document.SetObject(); rapidjson::Document::
Allocator
Type
wwlchuangye
·
2014-10-26 21:00
c++实现一个简单的空间配置器
allocator
c++实现一个简单的空间配置器
allocator
c++中内存分配和对象构造是分开来的,内存的分配类似malloc函数在内存空间开辟一段空间,但是里面不保存任何数据。
u013011841
·
2014-10-26 18:00
STL
内存分配
allocator
空间配置器
STL源码之实现一个简易的Vector容器
STL源码之实现一个简易的Vector容器 这里需要的基础知识主要是类模板和函数模板,以及一个C++内存分配的技术
allocator
类,它提供可感知类型的内存分配,这个类支持一个抽象接口,以分配内存并随后使用该内存保存对象
u013011841
·
2014-10-22 17:00
源码
vector
STL
The Android ION memory
allocator
LWNreviewedthelistofAndroidkernelpatchesinthelinux-nextstagingdirectory.Themergingofthesedrivers,oneofwhichisamemory
allocator
calledPMEM
Jerikc
·
2014-10-21 15:00
memcached的内存存储介绍
SlabAllocation机制:整理内存以便重复使用: 最近的memcached默认情况下采用了名为Slab
Allocator
的机制分配、管理内存。
tiandesheng111
·
2014-10-19 21:00
Deep Dive into Contiguous Memory
Allocator
ThisisthefirstpartofanextendedversionofanLWNarticleonCMA.ItcontainsmuchmoredetailonhowtouseCMA,andalotofboringcodesamples.Shouldyoubemoreinterestedinanoverview,considerreadingtheoriginalinstead.Contig
CaspianSea
·
2014-10-15 02:00
kernel
CMA
实现STL中的向量 vector
用到数组就会想到对应的可以动态增加空间的向量vector下面是模拟STL的基本功能,参《C++Primer》第四版将实现文件也写到类中的,可以无视代码风格这里用到了内存管理的类
allocator
allocator
a
jasonyuan18
·
2014-10-04 13:27
C++
c++
向量
stl
vector
C++中vector的实现
所以应该使用标准库提供的
allocator
类来实现内存的控制。当然也可以重载operatornew操作符,因为二者都是使用malloc作为底层实现,所以直接采用malloc也可以。
aa838260772
·
2014-10-02 16:03
C++
C++中vector的实现
所以应该使用标准库提供的
allocator
类来实现内存的控制。当然也可以重载operatornew操作符,因为二者都是使用malloc作为底层实现,所以直接采用malloc也可以。
aa838260772
·
2014-10-02 16:00
hbase MemStoreLAB代码浅析-1
首先看看 Memstore 的maybeCloneWith
Allocator
方法 Memstore#maybeCloneWith
Allocator
private KeyValue maybeCloneWith
Allocator
半点玻璃心
·
2014-09-30 17:00
hbase
0.98
Hadoop 2
value_type, key_type, mapped_type, reference,const_reference
123456789101112131415161718192021222324252627template, classA=
allocator
>classstd::map{public: /
fyfcauc
·
2014-09-25 21:00
C++
STL
STL《1》STL简介及vector容器的使用
链表)、stacks(栈)等STL由六大组件组成容器(Container)算法(Algorithm)迭代器(Iterator)仿函数(Functionobject)适配器(Adaptor)空间配制器(
allocator
u010105970
·
2014-09-24 15:00
STL笔记之空间配置器
1.初探
allocator
其实像我这样的一般人几乎接触不到
allocator
这种东西,因为这个模板参数是有默认值的,普通用户完全不需要和他打交道。
xuhao_xuhao
·
2014-09-23 23:00
Algorithm
C++
源代码
STL
内存分配
multi_array的正确(错误)用法说明
include usingnamespacestd; voidtest_multiArray() { //usingnamespaceboost; typedefboost::fast_pool_
allocator
FastPool
Allocator
davidsu33
·
2014-09-13 22:00
string
的函数
string的函数函数构造表示string::string(构造)string::~string(析构)string::operator= -赋值string::assign �C赋值string::get_
allocator
xy六道
·
2014-09-10 11:11
IOS的URL中文转码
encodeToPercentEscapeString:(NSString*)input { NSString*outputStr=(NSString*)CFURLCreateStringByAddingPercentEscapes(kCF
Allocator
Default
蓝天的梦想
·
2014-09-04 19:00
多线程的内存分配器mt_alloc
Afixed-size,multi-threadoptimized
allocator
原文URL:http://list.cs.brown.edu/people/jwicks/libstdc++/html
mergerly
·
2014-09-02 12:00
STL deque的构造函数(2)
/deque/deque/deque/publicmemberfunctionstd::deque::dequeC++98C++11C++14default(1)explicitdeque(const
allocator
_type
guang_jing
·
2014-09-01 10:00
STL
STL
C++11
deque
deque
memcached完全剖析–2.理解memcached的内存存储
SlabAllocation机制:整理内存以便重复使用最近的memcached默认情况下采用了名为Slab
Allocator
的机制分配、管理内存。
stefanzhlg
·
2014-08-29 16:00
memcached
memcached原理
memcached基础
The Android ION memory
allocator
TheAndroidIONmemory
allocator
February8,2012ThisarticlewascontributedbyThomasM.ZengBackinDecember2011,LWN
LongZh_CN
·
2014-08-26 16:00
apr-pool 内存池测试用例
"libapr.lib") int_tmain(intargc,_TCHAR*argv[]) { apr_pool_t*root; apr_pool_initialize();//初始化全局分配子(
allocator
sniper_bing
·
2014-08-15 14:00
内存池
apr-pool
C++ string实现原理
首先看看string和wstring类的定义:typedefbasic_string,
allocator
>strin
passion_wu128
·
2014-08-03 03:00
源码
String
原理
malloc中 heap block 的 blocksize 大小问题
heapblock引发的思考问题背景:ImplicitFreeLists Anypractical
allocator
needssomedatastructurethatallowsittodistinguishblockboundariesandtodistinguishbetweenallocatedandfreeblocks.Most
allocator
sembe
u011368821
·
2014-07-27 23:00
内存
C语言
malloc
heap
alignment
c++ STL之 Map
map是键-值对的集合template , class
Allocator
=
allocator
> > class map;key:关键值的类型。
memristor
·
2014-07-14 15:00
C++
map
STL
MySQL performance: Impact of memory
allocator
s (Part 2)
本文转载自:http://www.mysqlperformanceblog.com/2013/03/08/mysql-performance-impact-of-memory-
allocator
s-part
yumushui
·
2014-07-14 12:00
mysql
Impact of memory
allocator
s on MySQL performance
本文转载自:http://www.mysqlperformanceblog.com/2012/07/05/impact-of-memory-
allocator
s-on-mysql-performance
yumushui
·
2014-07-14 12:00
mysql
HEAP: Free Heap block xxxxxxxx modified at xxxxxxxx after it was freed
xxxxxxxx after it was freed 真麻烦.............Releaseanddebugversionusedifferentandincompatiblememory
allocator
s
ljh081231
·
2014-07-11 17:00
yarn的资源管理。
2014-07-04 17:30:37,492 INFO [RMCommunicator
Allocator
] org.apache.hadoop.mapreduce.v2.app
1987times
·
2014-07-07 11:00
内存分配器 (Memory
Allocator
)
有操作系统层面的内存分配器(Memory
Allocator
),有应用程序层面的,有为实时系统设计的,有为服务程序设计的。但他们的目的确认一样的,平衡内存分配的性能和提高内存使用的效率。
yapian8
·
2014-06-29 11:00
内存分配器 (Memory
Allocator
)
有操作系统层面的内存分配器(Memory
Allocator
),有应用程序层面的,有为实时系统设计的,有为服务程序设计的。但他们的目的却是一样的,平衡内存分配的性能和提高内存使用的效率。
HorkyChen
·
2014-06-29 03:00
malloc
webkit
内存管理
heap
STL札记1(空间配置,迭代器与traits编程)
一、空间配置器(
allocator
)空间配置器是是一个默默付出的“员工”,支撑着STL的各种组件(更确切点是容器container),工欲善其事,必先利其器。下面将随笔写一写空间配置器的工作原理。
g2s
·
2014-06-25 21:00
C++
STL
STL(Standard Template Library)简介
.它主要提供了六大组件.1.容器(container) 2.算法(algorithm) 3.迭代器(iterator)4.仿函数(functor) 5.适配器(adapter) 6.配置器(
allocator
robinson_911
·
2014-06-25 13:00
STL vector的构造函数和析构函数(2)
构造器原型:std::vector::vectorC++98C++11default(1)explicitvector(const
allocator
_type&alloc=
allocator
_type(
guang_jing
·
2014-06-21 21:00
C++
vector
STL
上一页
25
26
27
28
29
30
31
32
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他