05 2013 档案

摘要:http://bigocheatsheet.comKnow Thy Complexities!Hi there! This webpage covers the space and time Big-O complexities of common algorithms used in Computer Science. When preparing for technical interviews in the past, I found myself spending hours crawling the internet putting together the best, averag 阅读全文
posted @ 2013-05-24 21:15 blockcipher 阅读(225) 评论(0) 推荐(0)
摘要:一、C++对象模型C++对象模型包括两个层次:1. 语言层面:语言总直接支持面向对象程序设计的部分;2. 编译器层面:对于各种支持的底层实现机制。C++对象模型的“不变量”,是指对象模型是在编译时期确定的,没有办法在执行期动态增加或修改。二、对象模型概览1. C++对象模型组成 (1)数据:static和nonstatic (2)函数:static\、nonstatic、virtual (3)继承:单继承、多继承和虚拟继承2. 简单对象模型 对象由slots组成,每个slot指向一个数据成员或成员函数。基类作为一个数据成员,也占有一个slot。 优点:避免成员数据类型造成的对象大小不同, 缺点 阅读全文
posted @ 2013-05-17 20:14 blockcipher 阅读(260) 评论(0) 推荐(0)
摘要:转自http://www.infoq.com/cn/articles/yupoo-partition-database又拍网是一个照片分享社区,从2005年6月至今积累了260万用户,1.1亿张照片,目前的日访问量为200多万。5年的发展历程里经历过许多起伏,也积累了一些经验,在这篇文章里,我要介绍一些我们在技术上的积累。又拍网和大多数Web2.0站点一样,构建于大量开源软件之上,包括MySQL、PHP、nginx、Python、memcached、redis、Solr、Hadoop和RabbitMQ等等。又拍网的服务器端开发语言主要是PHP和Python,其中PHP用于编写Web逻辑(通过H 阅读全文
posted @ 2013-05-07 14:20 blockcipher 阅读(504) 评论(0) 推荐(0)