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

Object based caching #22

Open
konstin opened this issue Oct 30, 2017 · 2 comments
Open

Object based caching #22

konstin opened this issue Oct 30, 2017 · 2 comments

Comments

@konstin
Copy link
Member

konstin commented Oct 30, 2017

liboparl should use object based caching as opposed to request based caching so that objects that have already been retrieved through a list do not need to be loaded again when requested individually.

(I'm aware that a user could already implement that in the resolve function. But they'd need to parse the object themselves which would self-defeating for a liboparl user)

@eFrane
Copy link
Member

eFrane commented Oct 31, 2017

I'd rather vote for it should offer both object-based and request-based caching. My reasoning is that for some applications it might be very much okay to just keep raw request data around (mirrors for instance) as they don't actually care much about the contents whereas other applications that work with the object contents might not want to keep the request data around but do have the objects.

@konstin
Copy link
Member Author

konstin commented Oct 31, 2017

For simple mirroring you don't need liboparl, so the main mode for liboparl users will be object base caching. Object based caching can also improve performance significantly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants