[tuplevar] More use of pool

This commit is contained in:
Behdad Esfahbod committed 2025-09-16 01:45:36 -06:00
1 parent 12ce710f5c
commit f9cd59ae41
1 file changed
+6 -1
+6 -1
View File
@@ -422,7 +422,12 @@ struct tuple_delta_t
{
if (!compiled_interm_coords)
{
if (unlikely (!compiled_interm_coords.resize (2 * cur_axis_count)))
if (pool)
{
if (unlikely (!compiled_interm_coords.allocate_from_pool (pool, 2 * cur_axis_count)))
return false;
}
else if (unlikely (!compiled_interm_coords.resize (2 * cur_axis_count)))
return false;
start_coords = compiled_interm_coords.as_array ().sub_array (0, cur_axis_count);
end_coords = compiled_interm_coords.as_array ().sub_array (cur_axis_count);