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
-
20:53
SLS - Street League Skateboarding
3 days agoGold Medals, World Class Food, Night life & more - Get Lost: Tokyo
87.8K8 -
LIVE
Yefune Kenizi's [PC] Gaming
2 hours agoGTAO - Heists Week: Friday w/ GamingChad
136 watching -
LIVE
Baked Linguini's Home Channel
1 hour agoToads Wearing Sunglasses - Let's Play Battletoads in Battlemaniacs
111 watching -
LIVE
Akademiks
4 hours agoDiddy Last Stance! Bail Hearing Live! Lil Durk Case update! Young Thug not getting back his SH*T?
5,010 watching -
LIVE
In The Litter Box w/ Jewels & Catturd
21 hours agoLegacy media CANNOT be trusted | In the Litter Box w/ Jewels & Catturd – Ep. 697 – 11/22/2024
6,404 watching -
1:22:02
The Quartering
2 hours agoTrump BEATS NYC Felony Charges, New Woke Car Ads, WW3 Updates & More
59K32 -
10:03
Colion Noir
3 hours agoKimber's First "True" Double Stack 1911 Isn't Just A Gun It's A Statement
9.45K9 -
1:46:28
vivafrei
6 hours agoKeir Starmer Goes Full Tyrant! Canada Goes Full Gestapo! Trump Picks & MORE! Viva Frei Live
67.8K19 -
LIVE
ThatWhiteFish (Gaming)
2 hours ago $3.02 earnedNew to the Franchise! Can we survive? Do you have rations?
467 watching -
1:10:50
The New American
2 hours agoIs The Deep State Trying to Trigger WW3 Before Trump Takes Office? | The New American Daily
13.9K6