-
Notifications
You must be signed in to change notification settings - Fork 1k
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
chore: get rid of lispack stats #4644
Conversation
@@ -51,6 +51,30 @@ bool StringSet::Add(string_view src, uint32_t ttl_sec) { | |||
return true; | |||
} | |||
|
|||
unsigned StringSet::AddMany(absl::Span<std::string_view> span, uint32_t ttl_sec) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved from the header file
@@ -29,7 +29,7 @@ class StringSet : public DenseSet { | |||
// Returns true if elem was added. | |||
bool Add(std::string_view s1, uint32_t ttl_sec = UINT32_MAX); | |||
|
|||
template <typename T> unsigned AddMany(absl::Span<T> span, uint32_t ttl_sec); | |||
unsigned AddMany(absl::Span<std::string_view> span, uint32_t ttl_sec); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed template
RETURN_ON_ERR(LoadKeyValPair(type, &settings)); | ||
int delta_ms = (absl::GetCurrentTimeNanos() - start) / 1000'000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved inside LoadKeyValPair
function
They were wrong, we usually do not need them, and they complicated code. The right way to do it - to add them to OBJHIST statistics. In addition, did some other code improvements without functional changes. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
They were wrong, we usually do not need them,
and they complicated code. The right way to do it - to add them to OBJHIST statistics.
In addition, did some other code improvements without functional changes.