Conversation
|
Hello @guybe7, I wonder if this makes any measurable difference. In theory we could do that in many places, but that would make the code a bit more complex than needed. So why doing that only for streams? |
|
hi @antirez |
|
@guybe7 the PR is fine, but I want to close it since it's a long story that must be addressed at once IMHO. We should have access to different mechanisms. I want to given an example of what we can do:
On top of that, both these calls should no longer use gettimeofday() but a monolithic clock. Then we should use one call or the other, depending on how much freshness we really require. But I bet we'll be able many many times to use the cached value, because the value cached in this event loop cycle is fresh enough for a number of uses. Moreover, we should check So this is a thing that we should handle in a proper way during the start of a major release, like in Redis 7. Maybe we should copy that in an issue? |
|
@antirez ok, i'll open an issue and cite your reply in it |
No description provided.