-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
acceptedReady for implementationReady for implementationpluginImplementing a known but unsupported pluginImplementing a known but unsupported plugin
Description
https://github.com/tonybaloney/perflint - Python Linter for performance anti patterns.
- PERF101: Unnecessary list() on already iterable type (unnecessary-list-cast)
- PERF102: Incorrect iterator method for dictionary (incorrect-dictionary-iterator)
- PERF201: Loop invariant statement (loop-invariant-statement)
- PERF202: Global name usage in a loop (loop-global-usage)
- PERF203: Try..except blocks have a significant overhead. Avoid using them inside a loop (loop-try-except-usage)
- PERF204: Looped slicing of bytes objects is inefficient. Use a memoryview() instead (memoryview-over-bytes)
- PERF205: Importing the "%s" name directly is more efficient in this loop. (dotted-import-in-loop)
- PERF301: Use tuple instead of list for a non-mutated sequence. (use-tuple-over-list)
- PERF401: Use a list comprehension instead of a for-loop (use-list-comprehension)
- PERF402: Use a list copy instead of a for-loop (use-list-copy)
- PERF403: Use a dictionary comprehension instead of a for-loop (use-dict-comprehension)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
acceptedReady for implementationReady for implementationpluginImplementing a known but unsupported pluginImplementing a known but unsupported plugin