Fast and small C++## Fast and small C++ When efficiency matters Presentation Material  CppCon, Aurora CO, 2024-09-17 © 2024 Andreas Fertig the program name. $ ./a.out Hello, C++! • <string> stands for a header file with the name string • [[xyz]] marks a C++ attribute with the name xyz.string> ## fertig adjective /ˈfɛrtɪç/ finished ready [Image](/uploads/documents/a/8/f/d/a8fd6848c47c017b7f4d50006c6ad37b/p5_4.jpg) Andreas Fertig Fast and small C++ ## Compressed pair 1 auto f = 2 std::unique_ptr0 码力 | 17 页 | 790.91 KB | 1 年前3
Optimization for number of goroutines using feedback control# Optimization for number of goroutines using feedback control Yusuke MIYAKE / Pepabo R&D Institute, GMO Pepabo, Inc. 2019.07.25 GopherCon 2019  44 wg.Add(1) 36 - go func(path string) { 45 + go worker() 37 - defer wg.Done() 38 - defer 0 码力 | 66 页 | 13.04 MB | 2 年前3
SMALL IS GOING BIG: GOON MICROCONTROLLERS## SMALL IS GOING BIG: GO ON MICROCONTROLLERS GOPHERCON 2019 RON EVANS - @DEADPROGRAM ## RON EVANS (@DEADPROGRAM) ## TECHNOLOGIST FOR HIRE ## SALVADOR EVANS (SON OF @DEADPROGRAM) ## APPRENTICE ## thehybridgroup [Image](/uploads/documents/3/2/2/0/3220b7f311e789f4ca076d973f7b1570/p14_1.jpg) TINYGO.ORG ## GO FOR SMALL PLACES ## EVERYONE SAYS GO IS TOO BIG ## PROGRAMMING LANGUAGES OFTEN USED FOR EMBEDDED SYSTEMS ## STANDARD LIBRARY... YET ## BUT TINYGO CAN DO A LOT ALREADY ## AND TINYGO IS ALREADY VERY USEFUL FOR SMALL PLACES ## MICROCONTROLLERS ## WEBASSEMBLY ## HOW TINYGO WORKS ## GO → TINYGO → LLM ## GO COMPILER0 码力 | 100 页 | 1.40 MB | 2 年前3
Unraveling string_view: Basics, Benefits, and Best PracticesUnraveling string_view: Basics, Benefits, and Best Practices ## JASMINE LOPEZ & PRITHVI OKADE 20 24 September 15 - 20 ## Topics • Motivation • Performance benefits & basics • string_view: Constructors functions • string vs. string_view and their interoperability • When to use string_view • Using string_view safely • Intro to span • span vs. string_view • Case study of an optimization using string_view function foo which operates on an immutable string. • In C++ we generally will create it with the following signature. 1 void foo(const std::string& str); string existing_str; foo(existing_str); foo("hello0 码力 | 61 页 | 1.11 MB | 1 年前3
SQLite, Firefox, and our small IMDB movie database# SQLite, Firefox, and our small IMDB movie database CS3200 Database design (sp18 s2) Version 1/17/2018 ## Overview • This document covers 2 issues: • How to install SQLite manager in Firefox browser: You are going to install a small tool that allows you to explicitly create and manage a database with Firefox. • How to load the small IMDB movie database: - I posted a small file that contains subset subset of data from the IMDB movie website ("300 – Small IMDB - SQLite.sql"). You will upload these data into your local version of SQLite and then issue queries over the database. ### 1. Installing0 码力 | 22 页 | 1.83 MB | 2 年前3
Limitations and Problems in std::function and Similarfind the object with id "c" in a vector of objects // having an id() function returning string const auto it = std::find_if(v.begin(), v.end(), [\&](const auto &obj) { return obj }); ## I nstrumentedClass struct InstrumentedClass { explicit InstrumentedClass(std::string id) : id_(move(id)) {} ~InstrumentedClass() = default; }; // id_ = "C(" + id_ + ")" operator=(InstrumentedClass && other) noexcept; const std::string & id() const noexcept { return id_; } protected: std::string id_; }; ## Quiz: Lambda Captures (by Reference) // assume it0 码力 | 62 页 | 3.57 MB | 1 年前3
C++高性能并行编程与优化 - 课件 - 15 C++ 系列课:字符与字符串1. vector 容器初体验 & 迭代器入门 (BV1qF411T7sd) 2. 你所不知道的 set 容器 & 迭代器分类 (BV1m34y157wb) 3. string, string_view, const char * 的爱恨纠葛(本期) 4. 万能的 map 容器全家桶及其妙用举例 5. 函子 functor 与 lambda 表达式知多少 6. 通过实战案例来学习 ~/Codes/course/15 (master) $ 你的 char 是有符号的,我猜你是 x86 架构 ## C 语言中的字符串 • 字符串 (string) 就是由字符 (character) 组成的数组。 • C 语言中,字符串用双引号 “” 包裹,字符用单引号 “” 包裹。 • char c = 'h'; • char ## 封装的 std::string 应运而生 10 #include9 #include <string> 8 7 using namespace std; 6 5 int main() { 4 string s1 = "hello"; 3 string s2 = "world"; 2 string s3 = s1 + s2; 0 码力 | 162 页 | 40.20 MB | 2 年前3
Apache Kyuubi 1.4.0 Documentation[Image](/uploads/documents/c/f/8/6/cf86bc0bdadfc8f2b3a5d03584932cc7/p21_1.jpg) Tips: zoom up if the pic looks small Click next... ##### 3.3.3. Edit the Driver We can set libraries that include the org.apache.hive pic looks small Download/Update it... or, Edit Driver 'Apache Hive'  Tips: zoom up if the pic looks small We can [Image](/uploads/documents/c/f/8/6/cf86bc0bdadfc8f2b3a5d03584932cc7/p24_1.jpg) Tips: zoom up if the pic looks small ##### 3.3.5. Other settings We also can name a recognizable title for this connection. ![Image]0 码力 | 233 页 | 4.62 MB | 2 年前3
peewee Documentation
Release 2.10.2Indices and tables 211 Peewee is a simple and small ORM. It has few (but expressive) concepts, making it easy to learn and intuitive to use. • A small, expressive ORM • Written in python with support is a one-time operation and can be done quickly using the interactive interpreter. We can create a small helper function to accomplish this: def create_tables(): database.connect() database.create_tables([User we will use SQLiteDatabase. The first parameter is the filename containing the database, or the string :memory: to create an in-memory database. After the database filename, you can specify arbitrarysqlite30 码力 | 221 页 | 844.06 KB | 1 年前3
Nim 2.0.8 Manualstatements / simpleStmt # or a simple statement ## Comments Comments start anywhere outside a string or character literal with the hash character #. Comments consist of a concatenation of comment pieces documentation comment here. ]## You can also use the discard statement together with triple quoted string literals to create multiline comments: discard "" You can have any Nim code text commented html#writing-unitems) test framework. ## I dentifiers & Keywords Identifiers in Nim can be any string of letters, digits and underscores, with the following restrictions: • begins with a letter does0 码力 | 132 页 | 5.73 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
Small String Optimizationconstexprtemplatestruct压缩对联结反馈控制Goroutineskaburaya动态控制性能指标TinyGoLLVMWebAssembly微控制器GopherConstring_viewstd::stringspan性能优化内存分配SQLiteFirefoxIMDB数据库插件std::functionMitigationsAlternativesPerformanceOptimizationC字符串小字符串优化vectorKyuubiMonitoringLogging SystemConfigurationPerformance OptimizationPeewee ORMDatabaseModelQueryGuardsLocksModule systemIdentifiersString type













