Skip to content

Commit f5c7d39

Browse files
committed
feat: change is_left_value and is_right_value properties to cached_properties for performance
1 parent 267e472 commit f5c7d39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scubatrace/identifier.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def is_taint_from_entry(self) -> bool:
269269
return True
270270
return False
271271

272-
@property
272+
@cached_property
273273
def is_left_value(self) -> bool:
274274
"""
275275
Checks if the identifier is a left value (e.g., a variable that can be assigned a value).
@@ -284,7 +284,7 @@ def is_left_value(self) -> bool:
284284
# TODO: check if the identifier is an argument in a function call
285285
return False
286286

287-
@property
287+
@cached_property
288288
def is_right_value(self) -> bool:
289289
"""
290290
Checks if the identifier is a right value (e.g., a variable that is used to retrieve a value).

0 commit comments

Comments
 (0)