← Back to events
ActiveAIRelease

viable/strict/1788338158: Refactor TupleElements using uninit memory algorithms (#191647)

What happened

The old TupleElements implementation was highly nested and made use of placement new and explicit destructor calls. This commit changes it to a flatter implementation and uses uninitialized memory algorithms. It also improves the implementation of TensorElements::vec() && by returning the internal vector instead of copying. Things could be made even better if we had C++26's std::inplace_vector . TupleElements could…

Summary assembled by rule from the sources below

Why it's spreading

Sources