【Disruptor】
Disruptor
zero__007
这个作者很懒,什么都没留下…
展开
-
Disruptor介绍(一)
转载自:http://www.cnblogs.com/haiq/p/4112689.html http://developer.51cto.com/art/201306/399370.htm http://www.th7.cn/Program/java/201410/289634.shtml 一、什么是 Disruptor转载 2015-11-06 16:02:55 · 1060 阅读 · 0 评论 -
Disruptor介绍(二)
转载自:http://www.cnblogs.com/haiq/p/4112689.html http://www.zijinxing.com/201501/130218.html http://www.th7.cn/Program/java/201410/289634.shtml 五、Disruptor其它性能提高点转载 2015-11-06 16:07:29 · 892 阅读 · 0 评论 -
简单使用Disruptor
1.定义事件与事件工厂 事件(Event)就是通过 Disruptor 进行交换的数据类型。 事件工厂(Event Factory)定义了如何实例化事件(Event),需要实现接口 com.lmax.disruptor.EventFactory。Disruptor 通过EventFactory在 RingBuffer 中预创建 Event 的实例。一个 Event原创 2015-11-06 16:21:32 · 2976 阅读 · 1 评论 -
简单了解Disruptor
转载自:http://ifeve.com/disruptor-info/ 一、Disruptor为什么快 1.数组实现 用数组实现, 解决了链表节点分散, 不利于cache预读问题,可以预分配用于存储事件内容的内存空间;并且解决了节点每次需要分配和释放, 需要大量的垃圾回收GC问题 (数组内元素的内存地址的连续性存储的,在硬件级别,数组中的元素是会被预加载的,因为只要一转载 2017-03-28 20:20:44 · 409 阅读 · 0 评论