aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

Add optimized big vector functionality, helpers

Open alnoki opened this issue 2 years ago • 0 comments

  • Adds a size_of() function analogous to sizeof() in C.
  • Adds a 4K disk sector optimized implementation of BigVector.
  • Adds simple index-based borrowers/swap remove for BigVector.
  • Adds tests for all of the above, byte size analysis
  • Addresses #3695

Tagging @davidiw per #4051 , @gregnazario per recent discussion on vector size, @CapCap per recent discussion on struct field byte size, and @hariria , @lightmark , @wrwg , @zekun000, @runtian-zhou per #3695


This change is Reviewable

alnoki avatar Sep 10 '22 04:09 alnoki