You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the getPermission and if else chain is used. So the complexity of getPermission is O(N), with N being the number of permissions. Would it not be an idea to put them in a map and add a function as value that created a permission? Then the complexity would be O(1).
The text was updated successfully, but these errors were encountered:
In the getPermission and if else chain is used. So the complexity of getPermission is O(N), with N being the number of permissions. Would it not be an idea to put them in a map and add a function as value that created a permission? Then the complexity would be O(1).
The text was updated successfully, but these errors were encountered: