上一页 1 ··· 260 261 262 263 264 265 266 267 268 ··· 273 下一页
摘要: 转自:http://www.cnblogs.com/haippy/archive/2011/12/04/2276064.html 有时间再好好看下整个文章! 说起LevelDb也许您不清楚,但是如果作为IT工程师,不知道下面两位大神级别的工程师,那您的领导估计会Hold不住了:Jeff Dean和S 阅读全文
posted @ 2016-12-21 17:38 bonelee 阅读(2861) 评论(0) 推荐(0)
摘要: 注意两个地方说法有出入,待实测! es可以根据磁盘使用情况来决定是否继续分配shard。默认设置是开启的,也可以通过api关闭:cluster.routing.allocation.disk.threshold_enabled: false 在开启的情况下,有两个重要的设置: cluster.rou 阅读全文
posted @ 2016-12-21 12:07 bonelee 阅读(6776) 评论(0) 推荐(0)
摘要: elasticsearch还有一个重要的参数bootstrap.mlockall,这个参数的目的是当你无法关闭系统的swap的时候,建议把这个参数设为true。防止在内存不够用的时候,elasticsearch的内存被交换至交换区,导致性能骤降。 mlock, munlock, mlockall, 阅读全文
posted @ 2016-12-21 11:36 bonelee 阅读(654) 评论(0) 推荐(0)
摘要: 转自:http://cjjwzs.iteye.com/blog/1059381 本文将从内存分页的原理,如何调整分页大小两节内容,向你阐述LargePage对JVM的性能有何提升作用,并在文末点明了大内分页的副作用。OK,让我们开始吧! 内存分页大小对性能的提升原理 首先,我们需要回顾一小部分计算机 阅读全文
posted @ 2016-12-21 11:25 bonelee 阅读(3839) 评论(0) 推荐(0)
摘要: Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target. 阅读全文
posted @ 2016-12-21 09:21 bonelee 阅读(277) 评论(0) 推荐(0)
摘要: 这是《AngularJS》这本书里面提供的一个例子: JS代码: HTML代码: CSS代码: 运行效果如下: compile阶段进行标签解析和变换,link阶段进行数据绑定等操作! 在所有module都装载完毕在之后,compile(element)(scope);开始编译和链接整个dom树(其实 阅读全文
posted @ 2016-12-20 14:43 bonelee 阅读(276) 评论(0) 推荐(0)
摘要: Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be 阅读全文
posted @ 2016-12-20 09:14 bonelee 阅读(192) 评论(0) 推荐(0)
摘要: 问题:js文件须严格保证加载顺序(比如上例的1.js要在2.js的前面),依赖性最大的模块一定要放到最后加载,当依赖关系很复杂的时候,代码的编写和维护都会变得困难! C语言中模块开发-include requireJS库——借鉴类似C中模块依赖解决方式(include) 假定主模块依赖jquery、 阅读全文
posted @ 2016-12-19 14:25 bonelee 阅读(224) 评论(0) 推荐(0)
摘要: Given a non-empty string containing an out-of-order English representation of digits 0-9, output the digits in ascending order. Note: Example 1: Examp 阅读全文
posted @ 2016-12-18 22:37 bonelee 阅读(418) 评论(0) 推荐(0)
摘要: Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ BST's 阅读全文
posted @ 2016-12-18 20:58 bonelee 阅读(168) 评论(0) 推荐(0)
上一页 1 ··· 260 261 262 263 264 265 266 267 268 ··· 273 下一页