Basically, Shared Memory is an IPC that can be used with both the client and server are on the same machine. By using Shared Memory, you'll bypass local network subsystem. It doesn't surprise me that your friend sees a improvement in performance when communicating with the server.
Do a search on "Shared Memory" in the BOL.
-Mike