使用硬件加速Tokio - 戴翔
Conclusion: • DLB channel scales with core count much better than SW channels • Core count >2 shows advantage From the Pictures: • SW channels depicted in red and yellow line drop with the core count increasing one place. Conclusion: • DLB channel is more stable than SW channels • Core count >2 shows advantage From the Pictures: • SW channels depicted in origin and purple line, drop with the number of P0 码力 | 17 页 | 1.66 MB | 1 年前3C++高性能并行编程与优化 - 课件 - 01 学 C++ 从 CMake 学起
• 此外,如果不希望让引用 hellolib 的可执行文件自动添加这个路径,把 PUBLIC 改成 PRIVATE 即可。这就是他们的用途:决定一个属性要不要在被 link 的时候传播。 目标的一些其他选项 • 除了头文件搜索目录以外,还有这些选项, PUBLIC 和 PRIVATE 对他们同理: • target_include_directories(myapp PUBLIC /usr/include/eigen3) 不同的包之间常常有着依赖关系,而包管理器的作者为 find_package 编写的脚本(例如 /usr/lib/cmake/TBB/TBBConfig.cmake )能够自动查找所有依赖,并利用刚刚提 到的 PUBLIC PRIVATE 正确处理依赖项,比如如果你引用了 OpenVDB::openvdb 那么 TBB::tbb 也会被自动引用。 • 其他包的引用格式和文档参考: https://cmake.org/cmak0 码力 | 32 页 | 11.40 MB | 1 年前3C++23: An Overview of Almost All New and Updated Features
Example: class Cell { public: void setValue(double value) { m_value = value; } private: double m_value{}; }; ... Cell cell; cell.setValue(1.2); void setValue(this Cell& self, GetName() const & { return m_name; } std::string&& GetName() && { return std::move(m_name); } private: std::string m_name; };10 Explicit Object Parameters Code duplication Can be avoided return m_message.c_str(); } const std::stacktrace& trace() const noexcept { return m_stacktrace; } private: std::string m_message; std::stacktrace m_stacktrace; }; void bar() { throw MyException{"Some0 码力 | 105 页 | 759.96 KB | 5 月前3hazard pointer synchronous reclamation
– Maged Michael Global Cleanup Implementation • Must collect all retired objects (including in private caches) • Must check all hazard pointers against collected objects • Must complete reclamation of With global cleanup SequentialObjList list_; SharedObjList list_; Extra synchronization Removed private cache from Folly Using sharded domain lists instead Slow Not Scalable Is One Call to Global Cleanup0 码力 | 31 页 | 856.38 KB | 5 月前3whats new in visual studio
custom targets 🚀 https://vcpkg io vcpkg is Enterprise Ready 📚 Registries Create your own private library catalog for use within vcpkg; great for internal, closed-source 3rd party libraries and0 码力 | 42 页 | 19.02 MB | 5 月前3
共 5 条
- 1