Live data from Hacker News

Show HN: Pogocache – Fast caching software

github.com

21–30 of 30 posts

Re: Show HN: Pogocache – Fast caching software

#24
post #5

Earlier quoted context omitted.

That's the only way right now. The other ways I'm considering is with an environment variable and/or acl.

May I suggest the ability to specific a path to a file that it is then read from.

Like an ACL file?

Re: Show HN: Pogocache – Fast caching software

#28

Congrats! Would you mind sharing what part of the design makes this faster than the competitors?

Thanks! The Pogocache sharded hashmap design is optimized for extremely low contention and good memory locality. It super rare for any two threads to ever wait on the same key. That's the biggest part and it's all in the src/pogocache.c file. But the network layer is finely tuned too.

Mostly I perfed and profiled ad nauseam, monitoring cpu cycles along the way. I found that keeping a focus on latency and cycles was primo, and the rest fell into place.

Re: Show HN: Pogocache – Fast caching software

#29
post #24

Earlier quoted context omitted.

May I suggest the ability to specific a path to a file that it is then read from.

Like an ACL file?

No, like a path to a file containing the secret/passphrase that the program can then read it from. I am not a fan of putting secrets directly into environment variables.

Environment variables are prone to leak or be passed to child processes when it is not desired. But if they are just a file path/pointer to where the secret is, that is mitigated somewhat as one then would still need access to that file.

Post reply on HN