quil-rs icon indicating copy to clipboard operation
quil-rs copied to clipboard

`TypeError` and the resulted `TypeResult` are huge

Open asaites opened this issue 6 months ago • 0 comments

The TypeError enum is huge, mainly because Instruction is huge (~280 bytes), and so the TypeResult = TypeError<T, TypeError> is likewise huge, yet the T in question is almost always the empty tuple. We may see performance gains by boxing the TypeError (or otherwise reducing its size).

asaites avatar Jun 27 '25 23:06 asaites