Premium Only Content
Why You Should Use Memory Mapped Files
A memory mapped file is a file that can be read like a byte array from your program. They are the fastest way to parse data and to do inter-process communication (by a long way). In this video we explain its intricacies, and we show a demo program capable of doing 11 million ping-pong messages per second between two process using memory mapped files.
0:00 Start
2:30 Some of the Basics First
7:00 Semantical Benefits
10:40 Code: How to Open a Memory Map File
15:30 Performance Benefits
16:00 Swap and Memory Map Files are the same thing
22:00 Most Efficient way to Share Memory Between Processes; Compare And Swap, Memory Barriers
25:20 One System Call
27:38 Code: Memory Mapped File Ping between two processes
31:00 Code: Atomic Load/Store
34:50 Demo: 9 millions pings per second between two processes via mapped files
36:30 Demo: vs 24 kilo pings per second when using local network
40:20 The Small Prints: two caveats
46:30 Thank you
The Memory Ping Pong: https://github.com/ComputerSaysYeah/MemMapPing
The Blog Post: https://yeah.computer/posts/019-why-you-should-use-memory-mapped-files
-
LIVE
Glenn Greenwald
2 hours ago"Former" Al-Qaeda Leader Welcomed to the White House; The "New TikTok" Clamps Down on Israel Critics: With Influencer Guy Christensen; Dave Portnoy Decries Cancel Culture, Unless His Group is Under Attack | SYSTEM UPDATE #545
7,762 watching -
30:53
BonginoReport
6 hours agoMonica Kelsey: The Woman Who Is Saving Countless Babies - Nightly Scroll w/ Hayley Caronia (Ep.175)
27.4K9 -
1:08:36
Kim Iversen
3 hours agoFrom Head Chopping to The Oval Office: Who is Al-Sharaa?
74.6K51 -
LIVE
The Bold Lib
54 minutes agoBOLDCHAT: The Intolerant Left | Veteran's Day w/ANGELA BELCAMINO
26 watching -
LIVE
Quite Frankly
4 hours agoVeterans Day Lies, Legalized Betting, And More | Sal & J Gulinello 11/11/25
354 watching -
LIVE
Tundra Tactical
5 hours ago🛑LIVE NOW!! Dad Gamer Attempts To Dunk On Nerds
66 watching -
1:45:14
Redacted News
3 hours agoBREAKING: Jeffrey Epstein's Israeli Mossad Connections EXPOSED in New Documents - Cover-Up Deepens
114K63 -
1:14:16
vivafrei
5 hours agoKash Patel's Girlfriend Sues Elijah Schaeffer for $5 MIL Man Charged Over Portnoy Incident & MORE!
114K49 -
1:53:37
The Quartering
5 hours agoWar Declared On ICE In Chicago, Massive Allegations Against Leftist Streamer Hasan, 600,000 Chinese
134K42 -
2:04:04
DeVory Darkins
6 hours agoSchumer gets NIGHTMARE NEWS from Democrats
153K58