mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-07 07:23:15 +00:00
This long slow-path function is called four times, so de-templating it is an easy win. We use std::function instead of noncopyable_function because the function is copied within the parallel_for_each callback. The original code uses a move, which is incorrect, but did not fail because moving the lambdas that were used as the actual arguments is equivalent to a copy.
88 KiB
88 KiB