Closed
Description
go-IPFS has taken a different approach to js-IPFS in deciding when to start using a HAMT shard instead of a regular directory.
js-IPFS has an arbitrary 1k entry limit, overridable by the user.
go-IPFS calculates the likely block size of the directory node, sharding once it increases above a certain size.
We should align with the go-IPFS calculation, in order to not have divergent hashes for a given directory.