You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not a Python expert, but I think the issue is in _calcCrc32Uint32(crc, data). When crc is shifted left, it needs to be truncated with & 0xFFFFFFFF, or it gets turned into a big int and grows quite large.
I traced the value of crc on a 10-byte command and it topped out at 9041709683971943732904854826748712756544968371426423194332838811441949002642410130889108712225116206824332. I imagine the issue is much worse on larger messages.
Overview
Running the library will consume 70% CPU time on an i7 10th Gen CPU.
Library need to be optimized to to consume less CPU resource
How to reproduce
The text was updated successfully, but these errors were encountered: