Open code423n4 opened 2 years ago
This is valid, right now the performance of the orchestrator is significantly faster than needed so it's not likely there will be a significant time investment made here.
reopening as per judges assessment as "primary issue" on findings sheet
Handle
nascent
Vulnerability details
[I-00] Passing by ownership instead of borrowing
Severity: Low
Many functions take parameters by value instead of by reference, forcing the consumer to
.clone()
params. Borrowing wherever possible (and introducing lifetime parameters where necessary) avoids unnecessary copying of data. This can lead to substantial performance improvements.Recommendation
Wherever possible, borrow instead of passing ownership. This reduces the overall memory footprint and can drastically improve performance (depending upon the size of the data being duplicated).