Open
Description
It may be worthwhile for smbus_read_i2c_block_data()
and similar functions to write data into a preallocated buffer (of fixed size &mut [u8]
, or allowing the function to resize a &mut [u8]
), rather than returning a new Vec every time. This would save allocations, but would probably be an insignificant micro-optimization (unless you were running in a no-alloc environment or similar).
Metadata
Metadata
Assignees
Labels
No labels