Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the difference between this fastcache and ybc? #19

Closed
hiqsociety opened this issue Jul 26, 2019 · 2 comments
Closed

What's the difference between this fastcache and ybc? #19

hiqsociety opened this issue Jul 26, 2019 · 2 comments
Labels
question Further information is requested

Comments

@hiqsociety
Copy link

hiqsociety commented Jul 26, 2019

Any difference with this?
https://github.com/valyala/ybc

when should i use one or the other?

@valyala valyala added the question Further information is requested label Jul 26, 2019
@valyala
Copy link
Collaborator

valyala commented Jul 26, 2019

fastcache and ybc have the following differences:

  • ybc is file-backed persistent cache, while fastcache is in-memory cache
  • ybc is optimized for big values (more than 64KB) such as file contents, while fastcache is optimized for small values (up to 64KB)
  • ybc stores data in mmap'ed files, which can result in program stalls - see this article for details.
  • ybc requires cgo, while fastcache is written in pure Go.

@hiqsociety
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants