Re: [PATCH v2 1/8] libstdc++: Reduce template instantiations in .

2025-08-05 Thread Tomasz Kaminski
Second review, and changes I have done locally: * replaced auto with span when saving __static_exts to avoid making copy of array * in __contains_zero for array keeping static size is not important, so just rating dynamically sized span. I will post update patch on this thread soon. diff --git a/l

Re: [PATCH v2 1/8] libstdc++: Reduce template instantiations in .

2025-08-04 Thread Tomasz Kaminski
On Sun, Aug 3, 2025 at 11:02 PM Luc Grosheintz wrote: > In mdspan related code involving static extents, often the IndexType is > part of the template parameters, even though it's not needed. > > This commit extracts the parts of _ExtentsStorage not related to > IndexType into a separate class _S

[PATCH v2 1/8] libstdc++: Reduce template instantiations in .

2025-08-03 Thread Luc Grosheintz
In mdspan related code involving static extents, often the IndexType is part of the template parameters, even though it's not needed. This commit extracts the parts of _ExtentsStorage not related to IndexType into a separate class _StaticExtents. It also prefers passing the array of static extent