Joined June 2021
3 Photos and videos
19 Oct 2023
Reading files in C is faster than in C!!! (In at least one platform-specific use case.) Here's why: 1/...
1
62
19 Oct 2023
9/... (Of course, if we use binary file input, both versions get slightly faster, to ~5s (hacky C-style) and ~8s (iostreams w/ std::getline). Line-endings are changed by the OS when the file is read into the internal buffer behind the FILE*, not when fgetc is called).
1
64
19 Oct 2023
10/10 Hopefully Microsoft will get around to implementing the C version of getline and the other Dynamic Memory extensions sooner, rather than later... en.cppreference.com/w/c/expe…

55
10 Apr 2023
Clean Code Rule 0: When writing examples, code should be downright filthy.
When calling more than one function for a type, polymorphic dispatch can be faster, probably because vtables are cached. In this test (mf.cc) polymorphism was 5 ns faster than switch on my MacBookPro. github.com/unclebob/Clean-Co…
73