Amethyst Studio
聪明人的个人成长(摘抄)
第一章,真实。要成长,首先要接受现实,要知道真实情况是什么
3115 words
|
16 minutes
Cover Image of the Post
在C++中编写Cached函数
2023-02-18
python里面有一个超好用的cache关键字,可以用来提升性能,C++虽然没有这样的东西,但是我们可以来自己实现
714 words
|
4 minutes
Cover Image of the Post
C++为什么析构函数是虚函数
2022-11-12
解释一下为什么析构函数经常是虚函数
414 words
|
2 minutes
Cover Image of the Post
变优秀有用吗
变得优秀,就会受到追捧吗?
327 words
|
2 minutes
Cover Image of the Post
指令调度
由于芯片底层流水线的设计,按序执行指令可能并非是性能最优的方案,适当调整指令执行的顺序会使得程序的运行效率提高,这就是编译优化的指令调度。
3053 words
|
15 minutes
Cover Image of the Post
cuda libdevice中的logf函数
glibc的logf虽然比较精准,但不太适合在gpu这种向量化架构上跑,看看cuda是怎么计算的
1459 words
|
7 minutes
Cover Image of the Post
glibc源码剖析 - logf
剖析一下glibc中logf的实现,这个代码的解读需要不少数学知识
4012 words
|
20 minutes
Cover Image of the Post
C++常见面试题(初阶版)
2022-07-16
记录一下初级C++程序员的常见面试题。
5833 words
|
29 minutes
Cover Image of the Post