1)垃圾回收的两个关键要素: 发现无用对象。 回收无用对象的内存空间。 2)6种垃圾回收算法 引用计数法,tracing 算法,compacting算法,copying 算法,generation算法,adaptive算法。 3)detail: 引用计数法(Reference Counting Co ...
分类:
编程语言 时间:
2017-03-22 17:38:07
阅读次数:
205
AsyncTaskLoader: http://developer.Android.com/intl/zh-CN/reference/android/content/AsyncTaskLoader.html 错误信息: 原因: 必须static ...
分类:
移动开发 时间:
2017-03-22 14:13:56
阅读次数:
241
Python的GC模块主要运用了“引用计数”(reference counting)来跟踪和回收垃圾。在引用计数的基础上,还可以通过“标记-清除”(mark and sweep)解决容器对象可能产生的循环引用的问题。通过“分代回收”(generation collection)以空间换取时间来进一步 ...
分类:
编程语言 时间:
2017-03-22 00:03:19
阅读次数:
189
1) 没有NULL的references,因此引用reference被初始化。 2) pointer可以设为NULL,也可以改变其指向。 3) 当你知道你需要指向某个东西,而且绝不会指向其他东西,或是当你实现一个操作符而其语法需求无法用pointers达成,则使用references,否则,请采用p ...
分类:
其他好文 时间:
2017-03-21 10:22:57
阅读次数:
81
这里插入一下安装"view in browser"官方版的说明:(前提是得先安装package control插件) 1、通过"ctrl+shift+p"打开命令面板 2、输入"install package"打开安装插件面板 3、输入"view in browser"后通过鼠标左键单击或者回车键进 ...
分类:
其他好文 时间:
2017-03-20 20:57:50
阅读次数:
275
iOS 5.0之后apple引入了Xcode编译器特性ARC(Automatic Reference Counting,自动引用计数)来帮助开发者管理内存,但为了追求app的高性能与减少安装包大小,工作中很多时候需要我们手动管理内存。再牛的开发者也不能保证自己写的code 100%没有内存泄露,出现 ...
分类:
其他好文 时间:
2017-03-19 23:45:30
阅读次数:
201
Markdown Editor 安装Markdown插件可以实现 .md 和 .txt 文件的 Markdown 语法高亮,并提供 HTML 预览. 因为之前没有安装过别的插件,eclipse上安装插件最好配置好国内镜像源. Help -> Install New Software.. -> Ava ...
分类:
系统相关 时间:
2017-03-19 14:11:26
阅读次数:
254
qsort passes to the comparing function a pointer to the elements it has to compare; since in C there are no templates, this pointer is just brutally c ...
分类:
其他好文 时间:
2017-03-17 19:37:57
阅读次数:
138
MyBatis 参考资料官网:http://www.mybatis.org/core/zh/index.html Hibernate参考资料: http://docs.jboss.org/hibernate/core/3.6/reference/zh-CN/html_single/ ...
分类:
Web程序 时间:
2017-03-17 17:57:57
阅读次数:
160
iOS开发 JSonKit does not support Objective-C Automatic Reference Counting(ARC) 有使用JSonKit的朋友,如果遇到“JSonKit does not support Objective-C Automatic Referen ...
分类:
其他好文 时间:
2017-03-17 17:32:40
阅读次数:
123