Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Conversation

monktastic
Copy link
Contributor

@monktastic monktastic commented Sep 28, 2018

  • Add shared memory support to client and server.
  • Make caching getKey async.
  • Add a speed test (that also demonstrates shared memory usage).

Note that this breaks the MultiRemoteRaw API. It also adds a dep on github.com/gen2brain/shm. For this reason alone I might switch to posix shm, which doesn't require any deps.

I don't necessarily need to check in client-test (though it serves as an example of how to construct a shm client). I might move that code to a helper function in client.go.

@monktastic
Copy link
Contributor Author

Never mind: Posix shm isn't very portable (since Darwin has a shm_get syscall while it's a glibc wrapper to open a file on /dev/shm in Linux). Doesn't seem worth it.

Moved the creation of shm client into client.go.

…sync. Add a speed test (that also demonstrates shared memory usage).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant