Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: redundant ACL computation #474

Merged
merged 3 commits into from
Feb 19, 2025
Merged

fix: redundant ACL computation #474

merged 3 commits into from
Feb 19, 2025

Conversation

trungnotchung
Copy link
Member

@trungnotchung trungnotchung commented Feb 16, 2025

What type of PR is this?

  • Optimization

Description

  • refactor callFn and merge functions that always compute drp and acl on top of both functions. So that we can utilize these pre-compute values instead of re-computing them many times.
  • update _initializeFinalityState that can accept an acl as a parameter instead of recompute it.
  • update _computeObjectACL to return an ACL instead of DRP.

Related Issues and PRs

Added/updated tests?

  • No, because why: current test case covered all the cases

Additional Info

add instructions or screenshots on what you might think is relevant or instructions on how to manually test it

[optional] Do we need to perform any post-deployment tasks?

Copy link

github-actions bot commented Feb 16, 2025

Flamegraph.com report

flamegraph.pprof
See in flamegraph.com

Created by Flamegraph.com Github Action

@trungnotchung trungnotchung marked this pull request as ready for review February 17, 2025 01:35
Copy link
Contributor

@anhnd350309 anhnd350309 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sfroment sfroment force-pushed the fix/recompute-acl branch 2 times, most recently from cbc4951 to 069c521 Compare February 19, 2025 14:09
Copy link
Member

@JanLewDev JanLewDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sfroment sfroment merged commit 080af29 into main Feb 19, 2025
14 checks passed
@sfroment sfroment deleted the fix/recompute-acl branch February 19, 2025 15:06
JanLewDev pushed a commit that referenced this pull request Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] - Avoid Redundant ACL Computation in _initializeFinalityState
5 participants