Closed pierreluctg closed 2 months ago
Improved the speed of data conversion to hex string. This also as a result improves the can.Printer logger performance.
can.Printer
$ python -m timeit -s "import can" "str(can.Message(data=(_ for _ in range(64))))" 20000 loops, best of 5: 14.7 usec per loop
$ python -m timeit -s "import can" "str(can.Message(data=(_ for _ in range(64))))" 100000 loops, best of 5: 3.47 usec per loop
Improved the speed of data conversion to hex string. This also as a result improves the
can.Printer
logger performance.Main Branch
This PR