Closed dvadym closed 1 year ago
This PR speeds up utility analysis per partition for multi set of input configurations by vectorizing some operations with Numpy,
namely before this PR Each combiner gets List[(count:int, sum:float, n_partitions:int)] and all processing is in Python
List[(count:int, sum:float, n_partitions:int)]
Now each combiner gets
(counts:np.ndarray, sums:np.ndarray, n_partitions:np.ndarray)
This PR speeds up utility analysis per partition for multi set of input configurations by vectorizing some operations with Numpy,
namely before this PR Each combiner gets
List[(count:int, sum:float, n_partitions:int)]
and all processing is in PythonNow each combiner gets
(counts:np.ndarray, sums:np.ndarray, n_partitions:np.ndarray)
and all processing is in Numpy, which is much faster.