You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2020/03/27 01:06:55 UTC

[incubator-datasketches-characterization] branch bounds updated: use moving update

This is an automated email from the ASF dual-hosted git repository.

alsay pushed a commit to branch bounds
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-characterization.git


The following commit(s) were added to refs/heads/bounds by this push:
     new 6764501  use moving update
6764501 is described below

commit 6764501d3bdaabe9c60e81ec3a3116e4a94102e6
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Thu Mar 26 18:06:43 2020 -0700

    use moving update
---
 cpp/src/cpc_union_accuracy_profile.cpp   | 2 +-
 cpp/src/theta_union_accuracy_profile.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpp/src/cpc_union_accuracy_profile.cpp b/cpp/src/cpc_union_accuracy_profile.cpp
index 983e775..7718abb 100644
--- a/cpp/src/cpc_union_accuracy_profile.cpp
+++ b/cpp/src/cpc_union_accuracy_profile.cpp
@@ -43,7 +43,7 @@ void cpc_union_accuracy_profile::run_trial() {
     }
     count += delta;
     for (auto& sketch: sketches) {
-      u.update(*sketch);
+      u.update(std::move(*sketch));
     }
     cpc_sketch result = u.get_result();
     stat.update(
diff --git a/cpp/src/theta_union_accuracy_profile.cpp b/cpp/src/theta_union_accuracy_profile.cpp
index 5964f88..61cf67e 100644
--- a/cpp/src/theta_union_accuracy_profile.cpp
+++ b/cpp/src/theta_union_accuracy_profile.cpp
@@ -45,7 +45,7 @@ void theta_union_accuracy_profile::run_trial() {
     }
     count += delta;
     for (auto& sketch: sketches) {
-      u.update(*sketch);
+      u.update(std::move(*sketch));
     }
     compact_theta_sketch result = u.get_result();
     stat.update(


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org