Open
Description
Line 708 in a9d515a
Currently, IsHash()
parses, compiles and matches a regular expression each time, which is highly inefficient in terms of CPU and RAM. Instead, it should check the length of str
and then iterate over str
to check the digits, which will be a lot faster and won't allocate any memory at all.
Metadata
Metadata
Assignees
Labels
No labels