jacksoom_blog

  • Home

  • Archives

  • Categories

  • Tags

  • About

Rust Ownership

Posted on 2019-09-13 | Edited on 2019-09-17 | In Rust , Ownership | Comments:

Rust Ownership Rules 所有的value都有一个对应的owner 在同一时间,只有一个owner 如果owner离开其所属范围,该value将会失效 Varible Scope{ // ...

Read more »

Postgres_Query_Optimize

Posted on 2019-09-04 | Edited on 2019-09-17 | In c , database | Comments:

Index1: Muti Indexs 根据查找条件异或,bitmap映射到可使用的索引,快速定位所以在heap的位置 index_1 0101 index_2 0110 e.g. 0101 & 0110 = 0100 根据bitmap ...

Read more »

Redis_BIO

Posted on 2019-08-07 | In redis , c | Comments:

Redis Async library BIO(Background IO)Redis异步io库,主要作用,分三个thread分别处理三种job aof dump free memory(redisObject, redis database, redi ...

Read more »

protobuf_protocol

Posted on 2019-05-29 | Edited on 2019-07-05 | In 传输协议 , protobuf | Comments:

protobuf协议特点tag+valuetag+length+value形式 字符串字节流组成,key用数字压缩,数字value用varint编码,字符串用utf编码方式varint编码,最高位不用(一个字节用七位),1表示后续的字节也是该数字部分特点, ...

Read more »

simple-latency

Posted on 2019-05-21 | Edited on 2019-07-05 | Comments:

github搬砖。让自己的心里有点儿数; Latency Comparison Numbers (~2012)L1 cache reference 0.5 nsBranch mispredict ...

Read more »

go_compile

Posted on 2019-01-25 | Edited on 2019-07-05 | In 编程语言 , golang | Comments:

//go:noescape不用逃逸分析/处理, //go:nosplit表示该段忽略栈检查,也就是不会被抢占调度

Read more »

go_channel

Posted on 2019-01-25 | Edited on 2019-07-05 | In 编程语言 , golang | Comments:

channel工作流程发送者流程1: 常规检查(发送一个已经关闭的chan会直接触发panic) 2: 查看接受则阻塞队列中是否有sudog(对应的一个goroutine,注意是dequeue操作),如果有则直接发送消息到阻塞的goroutine(gp.p ...

Read more »

go-goroutine

Posted on 2019-01-19 | Edited on 2019-07-05 | In 编程语言 , golang | Comments:

goroutine调度抢占式调度源码解析://proc.gofunc main(){ //略、、、 if GOARCH != "wasm" { // no threads on wasm yet, so no sysmon ...

Read more »

go_slice

Posted on 2019-01-11 | Edited on 2019-07-05 | In 编程语言 , golang | Comments:

简介golang-slice,golang中的切片,简单来说,就是内部有一套自动扩容机制的数组。以cap=1024为扩容判断数量节点。源码分析// 动态扩容主函数func growslice(et *_type, old slice, cap int) s ...

Read more »

loginstic-regression

Posted on 2016-04-21 | Edited on 2019-06-27 | Comments:

logistic Regression-逻辑回归 线性边界方程 (θ为特征值参数,x为自变量)公式意义:计算某个事件发生的可能性,可以把跟这个事件相关的所有特征加权求和,可以看做是类别分界线(最佳拟合线),着重理解的方程。 逻辑函数(Sigmoid函数)函 ...

Read more »
12

jacksoom

jacksoom的个人技术blog
11 posts
10 categories
17 tags
GitHub E-Mail Skype
© 2019 Jacksoom
Powered by Hexo v3.8.0
|
Theme – NexT.Muse v7.1.1