会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Toggle navigation
stdpain
博客园
联系
Submit
订阅
管理
管理面板
随笔
stdpain
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
19
下一页
2022年1月24日
修改tmp目录
摘要: /tmp 目录公用的总是打满, 可以修改一下 export TMPDIR=$HOME/.tmp
阅读全文
posted @ 2022-01-24 20:19 stdpain
阅读(221)
评论(0)
推荐(0)
编辑
SIMD 非连续load
摘要: https://acl.inf.ethz.ch/teaching/fastcode/2021/slides/07-simd-avx.pdf 下面两种在O3下的汇编是相同的,在O2下不同 #include <immintrin.h> __m256d myArbitraryLoad2(double *a
阅读全文
posted @ 2022-01-24 14:09 stdpain
阅读(46)
评论(0)
推荐(0)
编辑
2022年1月21日
一些三方库的潜在问题
摘要: cctz: 每次获取 timezone对象的时候申请申请一把锁,性能很差, 建议cache一些常见的的timezone RE2: 正则库, 非预编译的case下,内部似乎会申请pthread锁,性能很差,建议使用hyberscan
阅读全文
posted @ 2022-01-21 17:12 stdpain
阅读(34)
评论(0)
推荐(0)
编辑
2022年1月18日
TODO: inv filter vectorized
摘要: #include <cstdint> #include <cstddef> #include <vector> int test(size_t old_sz, std::vector<uint8_t> &_selection) { for (size_t i = 0; i < old_sz; i++
阅读全文
posted @ 2022-01-18 10:38 stdpain
阅读(26)
评论(0)
推荐(0)
编辑
2022年1月14日
常用的一些解压命令
摘要: tar -xf tar -zxf xz -d bunzip2
阅读全文
posted @ 2022-01-14 10:56 stdpain
阅读(27)
评论(0)
推荐(0)
编辑
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
阅读(95)
评论(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
阅读(54)
评论(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
阅读(1746)
评论(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
阅读(81)
评论(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
阅读(38)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
8
···
19
下一页
公告
Copyright © 2021 stdpain
Powered by .NET 5.0 on Kubernetes