filecoin-project / actors-utils

Collection of libraries to implement common patterns and standards on the Filecoin Virtual Machine
Other
15 stars 13 forks source link

Optimise the HAMT_BIT_WIDTH parameter for majority use cases #17

Closed alexytsu closed 2 years ago

alexytsu commented 2 years ago

Currently, we have supposed a bitwidth of 5 is ideal for the HAMTs.

This constant should be determined empirically by simulating actors under use with large balances and transfer volume.

It should probably also be overridable by consumers if they wish to customise.

alexytsu commented 2 years ago

Some benchmarking done here: https://docs.google.com/spreadsheets/d/1PNh544VE6FPli_sd4owTH01IIC229L7K7buZxOPMr6M/edit#gid=1861990336 And actioned in this PR: https://github.com/helix-onchain/filecoin/pull/104