lambdaworks icon indicating copy to clipboard operation
lambdaworks copied to clipboard

BN254AtePairing::compute_batch forces odd allocation pattern

Open Oppen opened this issue 3 months ago • 0 comments
trafficstars

The signature of BN254AtePairing::compute_batch asks for a slice of tuples of references of its input. In Ethrex that means precompiles need to allocate an extra vector just to convert the points to references, adding unnecessary overhead for what is mostly an unusual interface. Can we change it to either take an iterator or a slice of values?

Oppen avatar Aug 22 '25 14:08 Oppen