Carbon is one of the components of Graphite, and is responsible for receiving metrics over the network and writing them down to disk using a storage backend.
The built-in function being used does not require comprehension and can work directly with a generator expression. Using a generator expession within these functions is faster than using a comprehension. - all - any - enumerate - iter - itertools.cycle - itertools.accumulate **_Note: The inbuilt functions all() and any() in …
Occurrences
There are 2 occurrences of this issue in the repository.
Description
The built-in function being used does not require comprehension and can work directly with a generator expression. Using a generator expession within these functions is faster than using a comprehension. -
all
-any
-enumerate
-iter
-itertools.cycle
-itertools.accumulate
**_Note: The inbuilt functionsall()
andany()
in …Occurrences
There are 2 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/graphite-project/carbon/issue/PTC-W0016/occurrences/