Debug builds don't help if they don't finish executing on non trivial files unfortunately. In such cases we need to insert the checks in more strategic places that don't cause potentially huge…
Looks like the issue also exists in Blender 4.2 already.
Not sure what you mean. Also, there is no reason the think that it will never be used just because it may not be used initially.
There shouldn't be an assertion for that. It's totally valid that the Map
has to allocate if a long list is provided.
A static_assert
is not possible here, because the length of the list is…
The thing is that all empty IndexRange
are considered to be equal, independent of the start. To me that implies that they also should be the same when they are extended. OffsetIndices
can…
Generally, the assert is right, but it still seems tricky to include it here. The issue is that it has O(n)
complexity and the rest of the function has O(log n)
. That means that it can make debug builds significantly slower in some cases.