Skip to content
Discussion options

You must be logged in to vote

Excuse the brief answer, but a common pitfall is that

data.static.role_data[role.id].permissions[input.resource.type][input.resource.action]

really is expanded to something like these four expressions

a = role.id
b = input.resource.type
c = input.resource.action
data.static.role_data[a].permissions[b][c]

and when the profiling is done, the counts of EVAL/REDO for each of these expressions are added up. This easily misleads.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by AdrianArnautu
Comment options

You must be logged in to vote
1 reply
@srenatus
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants