
程序设计
Herbert8888
专注于面向对象技术,智能手机软件研发,GPS导航以及数字地图
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Multi-thread VS function call
The rule for using multi-thread to replace the function call inside the single thread.1) Performance: When the execution time of function call is more than 0.1 second, the efficiency of CPU will be lo原创 2008-10-19 13:19:00 · 537 阅读 · 0 评论 -
引用计数(Reference Counting)和拷贝时写入并代理(CopyOnWrite&Proxy)的应用 (转载)
引子 如果让你用C++写一个实用的字符串类,我想下面的方案是很多人最先想到的:class ClxString{public: ClxString(); ClxString(const char *pszStr); ClxString(const ClxString &str); ClxString& operator=(const ClxString &str转载 2008-11-12 09:48:00 · 743 阅读 · 0 评论