上一页 1 ··· 5 6 7 8 9
摘要: 这是TDengine为了减少jemalloc的依赖而重构的CMakeLists.txt实现。代码如下 https://github.com/taosdata/TDengine/pull/15512/files 阅读全文
posted @ 2022-08-18 16:44 Mr42Sir 阅读(62) 评论(0) 推荐(0)
摘要: 直接结合代码讲解: //先在工厂使用前注册标签和创建功能 Factory<CreateAnimal> farm; farm.subscribe("CAT", [](const std::string & n) { return std::make_unique<Cat>(n); });///< st 阅读全文
posted @ 2022-07-27 11:49 Mr42Sir 阅读(73) 评论(0) 推荐(0)
摘要: 工厂模式在实际代码编写场景中非常好用,以下来记录一些写得比较好的文章,以做个总结: 1、C++ 深入浅出工厂模式(初识篇) 2、C++ 深入浅出工厂模式(进阶篇) 3、Fedor G. Pikus - Hands-On Design Patterns with C++_ Solve common C 阅读全文
posted @ 2022-07-01 18:03 Mr42Sir 阅读(93) 评论(0) 推荐(0)
摘要: If you are in China, please add this CMake flag -DTHIRD_PARTY_MIRROR=aliyun to speed up the downloading procedure for some dependency tar files. For p 阅读全文
posted @ 2022-06-02 18:43 Mr42Sir 阅读(836) 评论(0) 推荐(0)
摘要: 1.函数参数如果是基本变量,又不需要修改,尽量不要使用引用;当必须使用引用作为函数的参数时,应遵照谷歌编程规范的建议,“所有按照引用传递的参数应该加上const”。 2.函数局部变量尽量不要使用引用。 3.函数局部变量尽量在相对短的生命周期内使用完毕,不要跨很长的代码段使用。 4.按照使用顺序取生命 阅读全文
posted @ 2022-06-01 09:29 Mr42Sir 阅读(221) 评论(0) 推荐(0)
摘要: ##背景 昨天要git push一些代码更新到我的doris开发分支时被rejected,显示non-fast-forward冲突。 ##原因 主要还是因为一些在网页端的更新没有及时和本地的代码更新同步的原因。 ##解决办法 解决方法: git fetch origin 分支名称 获取远程分支deb 阅读全文
posted @ 2021-03-17 23:11 Mr42Sir 阅读(449) 评论(0) 推荐(0)
摘要: 记录一个坑,今晚差点坑了我,ODPS的SDK的依赖像以下这么写会报错: <dependency> <groupId>com.aliyun.odps</groupId> <artifactId>odps-sdk-core</artifactId> <version>0.29.11-oversea-pu 阅读全文
posted @ 2021-03-17 17:53 Mr42Sir 阅读(661) 评论(0) 推荐(0)
摘要: ##背景 在给Doris写flink-connector扩展的时候看到所参考的社区已实现的spark-connector中大量使用了Properties这个类,之前对它了解不多,现在算是做个笔记。 ##自己所用的该类的代码: // Licensed to the Apache Software Fo 阅读全文
posted @ 2021-03-15 17:29 Mr42Sir 阅读(115) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9