[FEATURE] - Avoid Redundant ACL Computation in _initializeFinalityState
#463
Labels
feature
New feature or request
_initializeFinalityState
#463
Problem Description
The method
_initializeFinalityState(hash: Hash)
currently recomputes the ACL even though the ACL might have already been computed and stored in the codebase.cloneDeep
operations are costly, and this function runs every time_initializeFinalityState
is called when a new vertex is added to the hash graph. This results in unnecessary recomputation and inefficiency.Proposed Solution
Instead of recomputing ACL every time, modify
_initializeFinalityState
to directly accept a precomputed aclImplementation PR
No response
Reference Issues
No response
Unresolved questions
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: