-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opa-react: tweak batch indexing/hashing (#139)
This way, our payloads sent to the Batch API become a lot smaller, and less redundant. The WeakMap should ensure that our memory usage doesn't grow too much from the extra accounting. The keys are random, and I think the probability of a clash within a batch is indistinguishable from zero. Also: * useMemo on useAuthz query pieces * adjust the tests so that they don't depend on the hashes -- and implementation detail they shouldn't depend on.
- Loading branch information
Showing
3 changed files
with
77 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters