Tag: efficiency
In the case of a security-critical event, the product fails to either log the event or misses crucial details in the logged information.
The product unintentionally grants unauthorized actors access to a resource by placing it in the wrong control sphere.
Recreating AWS clients in each Lambda function invocation is expensive.
Checks if gradient calculation is disabled during evaluation.
Api Logging Disabled may lead to unable to access log and does not record the event.
Synchronous publication of AWS Lambda metrics is inefficient.
Catching and re-throwing an exception without further actions is redundant and wasteful.
Inefficient regular expression patterns can lead to catastrophic backtracking.
Software system fails to properly track or release resources during its operation. This can lead to resource leaks.
The product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors.
Using DataLoader with num_workers
greater than 0
can cause increased memory consumption over time when iterating over native Python objects such as list
or dict
.
Sensitive or critical information is not encrypted before storage or transmission in the product.
The product relies on default credentials(including passwords and cryptographic keys) for potentially vital functions.
The software does not restrict or incorrectly restrict access to a resource from an unauthorized actor.
Using an AWS KMS key helps follow the standard security advice of granting least privilege to objects generated by the project.
The Debug feature should not be enabled or overridden.
Incorrect use of API leads to ambiguity and inconsistency
Inefficient string concatenation inside loops results in new object creation which adds quadratic runtime cost.
Custom polling can be inefficient and prone to error. Consider using AWS waiters instead.
Iteration when only one item is needed from a list is inefficient.
Missing authentication checks can lead to unauthorized access to a resource or performance of an action.
Creating PyTorch tensors on the CPU and then moving them to the device is inefficient.
The constructors for the hashlib
module are faster than new()