- 博客(4)
- 资源 (10)
- 收藏
- 关注
原创 python 原理学习笔记
python 的垃圾回收机制引用计数每个python对象都有一个核心的结构结构体PyObject, PyObject是每个对象必有的内容,其中ob_refcnt就是做为引用计数。当一个对象有新的引用时,它的ob_refcnt就会增加,当引用它的对象被删除,它的ob_refcnt就会减少。优点:简单实时性:一旦没有引用,内存就直接释放了。不用像其他机制等到特定时机。实时性还带来一个好处:处理回收内存的时间分摊到了平时。缺点:维护引用计数消耗资源循环引用分代回收分代回收是一种以空
2020-09-28 00:11:35 156
原创 数据库 学习笔记
索引索引可以理解为目录,把一些关键信息用一种数据结构存储起来,达到高效查询搜索的目的。mongoDB 有哪些索引单键索引在一个键上创建的索引就是单键索引,单键索引是最常见的索引,如MongoDB默认创建的_id的索引就是单键索引复合索引在多个键上建立的索引就是复合索引多键索引如果在一个数组上面创建索引,MongoDB会自己决定,是否要把这个索引建成多键索引。地理空间索引Mong...
2020-05-19 19:37:40 234
原创 AI 五子棋
What is Gomoku?Gomoku is an abstract strategy board game. Also called Gobang or Five in a Row, it istraditionally played with Go pieces (black and white stones) on a go board with 19x19 (15x15) inte...
2020-04-20 21:33:48 325
原创 Redis 知识点
Redis 知识点1. Redis 包含哪些数据结构String、Hash、List、Set、SortedSet底层由简单动态字符串(SDS),链表,字典,跳跃表,整数集合,压缩列表,对象/* * Redis 对象 */typedef struct redisObject { // 类型 unsigned type:4; // 不使用(对齐...
2020-04-19 14:28:14 119
精通Objective-C设计模式(Pro.Objective-C.Design.Patterns.for.iOS).Carlo.Chung.文字版
2017-04-18
programming-interviews-exposed
2016-01-27
3D 房屋 opengl c++
2014-03-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人