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
{{ message }}
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.
Using the following snippet - it looks like simple "with open / read" combo on ev3 python3 is about twice as slow as python2
Using "rb" flag to open lowers the gap significantly, but doesn't eliminate it completely.
Since ev3dev / python-ev3 requires quite a bit of file open/read operations - perhaps a note should be made on project page about this?
Using the following snippet - it looks like simple "with open / read" combo on ev3 python3 is about twice as slow as python2
Using "rb" flag to open lowers the gap significantly, but doesn't eliminate it completely.
Since ev3dev / python-ev3 requires quite a bit of file open/read operations - perhaps a note should be made on project page about this?
mini-benchmark results:
python2 - ~617
python3 - ~280
python3 with open(filename,"rb") - ~480
P.S.: Many thanks for your work on python-ev3 ! :)
The text was updated successfully, but these errors were encountered: