ARCHIVE

文章封存。

Random Scheduler Note

Random Scheduler Note Golang Scheduler 最近因為 golang 討論區的一篇文章,又簡單複習了下 golang scheduler,其實這個 scheduler 設計上面算是蠻簡單的,具體的內容其實很多文章都寫過了,而特點就是讓多個 goroutines 跑在

Integer Encoding Algorithm 筆記

Integer Encoding Algorithm 筆記 現今的電腦在 CPU 和 Memory 的速度上有極大的差距,而 Memory 到 Disk 上面的差距就更大了,所以有許多的壓縮演算法被套用在不同的應用上,例如 IoT, big data 和 database 之類的, 一個是為了節省儲

Golang 的 string interning 技巧

String Interning 最近在 twitter 上面看到一篇推文 Hacked string interning profiler for golang:https://t.co/EB2uJwzvtxAllows to understand where to use interning &

學習使用 compiler vector extension 去寫 SIMD 程式

最近強者我 Tead lead Champ Yen 在公司內部做了一次 experience sharing,內容非常的精彩,分享了怎麼使用 compiler vector extensions 去寫 SIMD 的 program,進而將 program 的效率提升,並且可以產出 portable

google 的 swisstable hashmap 筆記

Matt Kulukundis 在 cppcon 2017 年給的 talk,我覺得這個 talk 講得非常好,主要是說明如何使用 Swiss Tables ,設計出更符合當代硬體架構的 hash map (flat hash map),google 內部大量採用這個改寫 std:unordered