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
Vigilant News Network
12 hours agoSHOCKING New Details Surrounding Trump Assassination Attempt Emerge | The Daily Dose
1,462 watching -
39:07
TheTapeLibrary
1 day ago $0.09 earnedThe Horrifying Legends of Hoia Baciu | The Worlds Most Haunted Forest
9.52K3 -
33:25
Degenerate Jay
1 day agoHow Assassin's Creed Destroyed Its Multiplayer - But Now We Should Trust Them?
22.3K2 -
12:41
IsaacButterfield
1 day ago $0.06 earnedWhat A FAT GIRL Eats In A Day! (10,000 CALORIES!!)
9.25K13 -
1:32
Brownells, Inc.
16 hours agoQuick Tip: Is It OK to Store Magazines Loaded?
13.7K9 -
1:58:59
The Shannon Joy Show
15 hours ago🔥 Exclusive with Catherine Austin Fitts: 'Liberty Warriors Must Shift Politics to the Power Space!'
21.3K9 -
56:09
Mark Kaye
21 hours agoCRASH! Kamala Harris Poll Collapse. Campaign to Call It Quits?
25.6K43 -
5:54:58
SNEAKO
10 hours agoSNEAKO X ADIN ROSS
104K38 -
3:57:31
Fresh and Fit
11 hours agoAfter Hours w/ Girls
142K111 -
35:13
Power Slap
3 days agoPower Slap: Road to the Title - Season 3 Episode 10 - Violence and Destruction
613K58