Remove Store.list() from interface #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Remove
list(): Hash[]from theStoreinterface. It encourages full CAS scans which are an O(n) performance trap.Motivation
With
listByType()now available, there is no legitimate use case for iterating all nodes. Any code usinglist()should be migrated tolistByType()or removed.Tasks
list()fromStoretype injson-cas/src/types.tsjson-cas/src/store.ts(memory store)json-cas-fs/src/store.ts(fs store)list()walk,refs,bootstrap) and migrate if needed