Preshing on Programming

Jeff Preshing · Engineering blog · 74 works · 407 pages
Provenance & compiled volume Details
Original source preshing.com/
Corpus totals 74 works · 407 pages · 125,212 words
Compiled PDF volume Complete Archive (16.6 MB)
Content integrity (SHA-256)

Table of Contents

50 shown · 74 total works
  1. 01 Hash Collision Probabilities 5 min· pp. 6–9
  2. 02 Hash Table Performance Tests 16 min· pp. 10–17
  3. 03 Visual C++ Performance Pitfalls 2 min· pp. 18–19
  4. 04 The Windows Heap Is Slow When Launched from the Debugger 6 min· pp. 20–23
  5. 05 Finding Bottlenecks by Random Breaking 5 min· pp. 24–27
  6. 06 The Cost of Enabling Exception Handling 5 min· pp. 28–31
  7. 07 The Cost of Buffer Security Checks in Visual C++ 4 min· pp. 32–34
  8. 08 The Cost of _SECURE_SCL 3 min· pp. 35–36
  9. 09 xkcd Password Generator 2 min· pp. 37–38
  10. 10 Penrose Tiling in Obfuscated Python 3 min· pp. 39–40
  11. 11 Penrose Tiling Explained 5 min· pp. 41–44
  12. 12 The Python "with" Statement by Example 11 min· pp. 45–51
  13. 13 Timing Your Code Using Python's "with" Statement 2 min· pp. 52–53
  14. 14 High-Resolution Mandelbrot in Obfuscated Python 2 min· pp. 54–56
  15. 15 How to Generate Random Timings for a Poisson Process 6 min· pp. 57–60
  16. 16 Locks Aren't Slow; Lock Contention Is 8 min· pp. 61–64
  17. 17 Always Use a Lightweight Mutex 4 min· pp. 65–66
  18. 18 A C++ Profiling Module for Multithreaded APIs 7 min· pp. 67–70
  19. 19 A Look Back at Single-Threaded CPU Performance 7 min· pp. 71–75
  20. 20 Roll Your Own Lightweight Mutex 7 min· pp. 76–79
  21. 21 Implementing a Recursive Mutex 6 min· pp. 80–84
  22. 22 How to Remove Camera Shake from iPhone 4S Videos 18 min· pp. 85–93
  23. 23 Memory Reordering Caught in the Act 7 min· pp. 94–98
  24. 24 Lightweight In-Memory Logging 7 min· pp. 99–104
  25. 25 An Introduction to Lock-Free Programming 11 min· pp. 105–112
  26. 26 Memory Ordering at Compile Time 11 min· pp. 113–119
  27. 27 Memory Barriers Are Like Source Control Operations 12 min· pp. 120–126
  28. 28 Acquire and Release Semantics 7 min· pp. 127–130
  29. 29 Weak vs. Strong Memory Models 7 min· pp. 131–134
  30. 30 This Is Why They Call It a Weakly-Ordered CPU 8 min· pp. 135–140
  31. 31 Here's Some Working Code to Sort One Million 8-Digit Numbers in 1MB of RAM 3 min· pp. 141–142
  32. 32 1MB Sorting Explained 5 min· pp. 143–146
  33. 33 Arithmetic Coding and the 1MB Sorting Problem 6 min· pp. 147–150
  34. 34 Arithmetic Encoding Using Fixed-Point Math 10 min· pp. 151–156
  35. 35 How to Generate a Sequence of Unique Random Integers 7 min· pp. 157–160
  36. 36 This Hash Table Is Faster Than a Judy Array 8 min· pp. 161–165
  37. 37 View Your Filesystem History Using Python 6 min· pp. 166–168
  38. 38 Introducing Mintomic: A Small, Portable Lock-Free API 4 min· pp. 169–171
  39. 39 A Lock-Free... Linear Search? 9 min· pp. 172–177
  40. 40 The World's Simplest Lock-Free Hash Table 8 min· pp. 178–183
  41. 41 Atomic vs. Non-Atomic Operations 9 min· pp. 184–189
  42. 42 The Happens-Before Relation 5 min· pp. 190–193
  43. 43 The Synchronizes-With Relation 9 min· pp. 194–199
  44. 44 Acquire and Release Fences 8 min· pp. 200–205
  45. 45 Double-Checked Locking is Fixed In C++11 11 min· pp. 206–213
  46. 46 Acquire and Release Fences Don't Work the Way You'd Expect 5 min· pp. 214–216
  47. 47 Bitcoin Address Generator in Obfuscated Python 5 min· pp. 217–220
  48. 48 What Is a Bitcoin, Really? 13 min· pp. 221–229
  49. 49 The Purpose of memory_order_consume in C++11 12 min· pp. 230–238
  50. 50 My Multicore Talk at CppCon 2014 4 min· pp. 239–240