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

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


The following commit(s) were added to refs/heads/req_sketch by this push:
     new 17f2417  moved hra from template to constructor call.
17f2417 is described below

commit 17f2417f5b455920099f98a02e5b68c3a78595d6
Author: AlexanderSaydakov <[email protected]>
AuthorDate: Mon Jan 11 16:00:18 2021 -0800

    moved hra from template to constructor call.
---
 cpp/src/req_merge_timing_profile_impl.hpp  | 6 +++---
 cpp/src/req_sketch_timing_profile_impl.hpp | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/cpp/src/req_merge_timing_profile_impl.hpp 
b/cpp/src/req_merge_timing_profile_impl.hpp
index 8024fd7..911fe9c 100644
--- a/cpp/src/req_merge_timing_profile_impl.hpp
+++ b/cpp/src/req_merge_timing_profile_impl.hpp
@@ -53,7 +53,7 @@ void req_merge_timing_profile<T>::run() {
   size_t max_len = 1 << lg_max_stream_len;
 
   std::vector<T> values(max_len);
-  std::unique_ptr<req_sketch<T, hra>> sketches[num_sketches];
+  std::unique_ptr<req_sketch<T>> sketches[num_sketches];
 
   size_t stream_length(1 << lg_min_stream_len);
   while (stream_length <= (1 << lg_max_stream_len)) {
@@ -68,9 +68,9 @@ void req_merge_timing_profile<T>::run() {
 
       auto start_build(std::chrono::high_resolution_clock::now());
       for (size_t i = 0; i < num_sketches; i++) {
-        sketches[i] = std::unique_ptr<req_sketch<T, hra>>(new req_sketch<T, 
hra>(k));
+        sketches[i] = std::unique_ptr<req_sketch<T>>(new req_sketch<T>(k, 
hra));
       }
-      req_sketch<T, hra> merge_sketch(k);
+      req_sketch<T> merge_sketch(k, hra);
       auto finish_build(std::chrono::high_resolution_clock::now());
       build_time_ns += 
std::chrono::duration_cast<std::chrono::nanoseconds>(finish_build - 
start_build);
 
diff --git a/cpp/src/req_sketch_timing_profile_impl.hpp 
b/cpp/src/req_sketch_timing_profile_impl.hpp
index 2ba67aa..1f4576e 100644
--- a/cpp/src/req_sketch_timing_profile_impl.hpp
+++ b/cpp/src/req_sketch_timing_profile_impl.hpp
@@ -81,7 +81,7 @@ void req_sketch_timing_profile<T>::run() {
       for (size_t i = 0; i < stream_length; i++) values[i] = sample();
 
       auto start_build(std::chrono::high_resolution_clock::now());
-      req_sketch<T, hra> sketch(k);
+      req_sketch<T> sketch(k, hra);
       auto finish_build(std::chrono::high_resolution_clock::now());
       build_time_ns += 
std::chrono::duration_cast<std::chrono::nanoseconds>(finish_build - 
start_build);
 
@@ -118,7 +118,7 @@ void req_sketch_timing_profile<T>::run() {
       serialize_time_ns += 
std::chrono::duration_cast<std::chrono::nanoseconds>(finish_serialize - 
start_serialize);
 
       auto start_deserialize(std::chrono::high_resolution_clock::now());
-      auto deserialized_sketch = req_sketch<T, hra>::deserialize(bytes.data(), 
bytes.size());
+      auto deserialized_sketch = req_sketch<T>::deserialize(bytes.data(), 
bytes.size());
       auto finish_deserialize(std::chrono::high_resolution_clock::now());
       deserialize_time_ns += 
std::chrono::duration_cast<std::chrono::nanoseconds>(finish_deserialize - 
start_deserialize);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to