Use dynamic size for clustering temporary data (cherry-pick !3683)
See merge request !3683 (merged)
(cherry picked from commit 66a457df)
74c788c9 Use dynamic size for clustering temporary data 0de96592 Use boost::small_vector to mitigate temporary buffers allocation cost