上一页 1 2 3 4 5 6 7 8 ··· 19 下一页
摘要: /tmp 目录公用的总是打满, 可以修改一下 export TMPDIR=$HOME/.tmp 阅读全文
posted @ 2022-01-24 20:19 stdpain 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: cctz: 每次获取 timezone对象的时候申请申请一把锁,性能很差, 建议cache一些常见的的timezone RE2: 正则库, 非预编译的case下,内部似乎会申请pthread锁,性能很差,建议使用hyberscan 阅读全文
posted @ 2022-01-21 17:12 stdpain 阅读(34) 评论(0) 推荐(0) 编辑
摘要: #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) 编辑
摘要: tar -xf tar -zxf xz -d bunzip2 阅读全文
posted @ 2022-01-14 10:56 stdpain 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: 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) 编辑
摘要: 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) 编辑
摘要: 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) 编辑
摘要: #~/.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 下一页