会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Toggle navigation
stdpain
博客园
联系
Submit
订阅
管理
管理面板
随笔
stdpain
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
19
下一页
2022年1月13日
vmware ubuntu 异常关机无法连接到网络
摘要: step1: 查看所有的网卡 ifconfig -a 可以看到ens33 这个不work了 stdpain@ubuntu:~$ ifconfig -a ens33: flags=4098<BROADCAST,MULTICAST> mtu 1500 ether 00:0c:29:45:7a:69 tx
阅读全文
posted @ 2022-01-13 10:41 stdpain
阅读(134)
评论(0)
推荐(0)
2022年1月6日
Speed up GCC link
摘要: CMAKE 替换link 命令: 使用 gold-link set (CMAKE_EXE_LINKER_FLAGS "-fuse-ld=gold -Wl,--threads -Wl,--thread-count,16") install: ../configure --enable-gold --d
阅读全文
posted @ 2022-01-06 21:52 stdpain
阅读(92)
评论(0)
推荐(0)
2021年12月11日
Log4j 漏洞复现
摘要: pom.xml 中: <dependencies> <!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api --> <dependency> <groupId>org.apache.logging.log4
阅读全文
posted @ 2021-12-11 01:00 stdpain
阅读(1773)
评论(0)
推荐(0)
2021年10月24日
Branch 向量化
摘要: Branch 向量化 问题发现定位 昨天晚上小伙伴告诉我有一个case的性能不太理想,让我看看 这个查询长这样: SELECT SUM(CASE WHEN LO_SUPPLYCOST + 10000 > 100000 then 1 else 0 END) FROM lineorder_flat; l
阅读全文
posted @ 2021-10-24 15:52 stdpain
阅读(119)
评论(0)
推荐(0)
2021年10月22日
让你的gdb print 更可读
摘要: #~/.gdbinit python import sys sys.path.insert(0, '$GCC_HOME/share/gcc-9.2.0/python') from libstdcxx.v6.printers import register_libstdcxx_printers reg
阅读全文
posted @ 2021-10-22 16:50 stdpain
阅读(50)
评论(0)
推荐(0)
2021年10月12日
vectorized case sum
摘要: 在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
阅读(62)
评论(0)
推荐(0)
2021年8月19日
vectorized case branch
摘要: #include <utility> #include <vector> #include <list> #include <algorithm> #include <iostream> #include <functional> #include "cmath" #define likely(x)
阅读全文
posted @ 2021-08-19 18:52 stdpain
阅读(44)
评论(0)
推荐(0)
2021年8月17日
Vim 中好用的插件
摘要: 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
阅读(153)
评论(0)
推荐(0)
2021年7月15日
WSL DNSFIX
摘要: 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
阅读(69)
评论(0)
推荐(0)
2021年6月26日
OLAP 一些扯淡
摘要: OLAP 一些扯淡 行存(NSM) VS 列存(NSM) 两种存储方式各有各的好处,行存就像写日志一样一行一行的存,更新相对来说会方便一些。列存是一列数据放在一起,相对来说更新不太方便,但是压缩可能会更好一些。 假设有一个超大宽的表,有100个列,但是你的某个查询只涉及2-3个列。如果是行存那你可能
阅读全文
posted @ 2021-06-26 14:24 stdpain
阅读(214)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
19
下一页
公告
Copyright © 2021 stdpain
Powered by .NET 5.0 on Kubernetes