Skip to content

Commit

Permalink
perf(effects): use faster operations
Browse files Browse the repository at this point in the history
  • Loading branch information
P403n1x87 committed Nov 27, 2021
1 parent 11ac329 commit 4e4a335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bytecode/effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@

def stack_effect(opcode, oparg=None, jump=None):
def nargs(o):
return int((o % 256) + 2 * (o / 256))
return (o & 255) + ((o >> 7) & -2)

oparg = oparg or 0
# TODO: Can add check for when oparg is required
Expand Down

0 comments on commit 4e4a335

Please sign in to comment.