You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a TODO item in t_zset.c line 944. /* TODO: add function to ziplist API to delete N elements from offset. */
But the __ziplistDelete function has already been implemented.
Will it make sense to wrap this function and give interface in ziplist.*?
But the benefit is very tiny, it may implement tiny improvement in speed due to the implement of __ziplistDelete and be more comfortable to delete some entries from offset.
Positions like line 944 in t_zset.c
t_hash.c: line 237, 238 (hashTypeDelete).
t_zset.c: line 945, 946 (zzlDelete)
line 1029, 1030 (zzlDeleteRangeByScore)
line 1056, 1057 (zzlDeleteRangeByLex)
@sunheehnus I think that writing the same function two times triggered @pietern aesthetic sense :-) The call repetition may look bad indeed, but I also tend to agree that the speed improvement is not huge especially since after the first call we are not going to experience a second cache miss. I would not bother ;-)
Activity
antirez commentedon Dec 13, 2014
@sunheehnus I think that writing the same function two times triggered @pietern aesthetic sense :-) The call repetition may look bad indeed, but I also tend to agree that the speed improvement is not huge especially since after the first call we are not going to experience a second cache miss. I would not bother ;-)
sunheehnus commentedon Dec 13, 2014
Thanks very much for your answer. :-)
Update RedisTimeSeries to version 8.11.90 (#15969)