上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页
摘要: 在sum算子中,我们的实现的大概逻辑是这样的: void batch_update2(int* res, int col[],int size) { for(int i = 0;i < size; ++i) { *res += col[i]; } } GCC 没有办法向量化,因为不知道 res的地址 阅读全文
posted @ 2021-10-12 09:56 stdpain 阅读(42) 评论(0) 推荐(0) 编辑
摘要: #include <utility> #include <vector> #include <list> #include <algorithm> #include <iostream> #include <functional> #include "cmath" #define likely(x) 阅读全文
posted @ 2021-08-19 18:52 stdpain 阅读(37) 评论(0) 推荐(0) 编辑
摘要: Vim 中好用的插件 Vundle 插件管理器 git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle 编辑 ~/.vim/vimrc filetype off " required set noswapfile set 阅读全文
posted @ 2021-08-17 18:55 stdpain 阅读(137) 评论(0) 推荐(0) 编辑
摘要: dnsfix () { /mnt/c/Windows/system32/ipconfig.exe /all | grep --color=auto "DNS Servers" | cut -d ":" -f 2 | grep --color=auto -e '^ [0-9]' | sed 's/^/ 阅读全文
posted @ 2021-07-15 13:41 stdpain 阅读(65) 评论(0) 推荐(0) 编辑
摘要: OLAP 一些扯淡 行存(NSM) VS 列存(NSM) 两种存储方式各有各的好处,行存就像写日志一样一行一行的存,更新相对来说会方便一些。列存是一列数据放在一起,相对来说更新不太方便,但是压缩可能会更好一些。 假设有一个超大宽的表,有100个列,但是你的某个查询只涉及2-3个列。如果是行存那你可能 阅读全文
posted @ 2021-06-26 14:24 stdpain 阅读(183) 评论(0) 推荐(0) 编辑
摘要: code 大概长这样 inline int64_t RoundUpToPowerOfTwo(int64_t v) { --v; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; v |= v >> 32; ++v; r 阅读全文
posted @ 2021-06-24 10:58 stdpain 阅读(60) 评论(0) 推荐(0) 编辑
摘要: ⎠⎝≥⏝⏝≤⎠⎞ ⎠⎝≥⏝⏝≤⎠⎞ vim 输入 '\t' insert 模式下, ctrl + v 然后 输入 tab https://blog.csdn.net/leo_wanta/article/details/7104960 cp /etc/apt/sources.list /etc/apt 阅读全文
posted @ 2021-05-25 13:48 stdpain 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 如果一个lambda没有捕获任何值。那么它可以赋值给一个函数指针 https://stackoverflow.com/questions/28746744/passing-capturing-lambda-as-function-pointer 阅读全文
posted @ 2021-05-23 18:43 stdpain 阅读(43) 评论(0) 推荐(0) 编辑
摘要: atomic 并没有默认初始化 https://github.com/apache/incubator-doris/issues/5825 阅读全文
posted @ 2021-05-17 14:27 stdpain 阅读(36) 评论(0) 推荐(0) 编辑
摘要: -fvar-tracking fvar-tracking-assignments https://stackoverflow.com/questions/30591793/optimized-out-in-gdb-in-ubuntu 阅读全文
posted @ 2021-05-10 10:37 stdpain 阅读(192) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页