Repository navigation
Conversation
|
This works on my machine, but I did not test the actual performance impact on the ev3. |
|
Is this issue referring to the latest Stretch image (22 April 2018)? I'm not able to get a connection from my PC to the EV3 with that image. The EV3 says it is connected but neither VS Code nor SFTP Net Drive can connect to it. Just me? |
|
This implementation should work both for the jessie and stretch images. I hope you would see an improvement on whatever system you used here: ev3dev/ev3dev#1022 (comment). |
|
Just checked, and this works on the latest stretch image. The following script was used for testing: from ev3dev2.fonts import *Before the patch: time python3 tf.py
real 0m32.798s
user 0m24.747s
sys 0m0.603sAfter the patch: time python3 tf.py
real 0m5.543s
user 0m4.168s
sys 0m0.266s |
|
In jessie ev3dev-lang-.python has the same FInally why do we bother to build the 'pbm_file' in load() if we don't use it ever? |
We package the fonts ourselves, so it should be the same both for stretch and jessie.
Can you add some prints to the new
I don't remember why exactly, but I think it was used implicitly. Can you try to comment that out and see if the fonts still work? |
This should reduce time to import
ev3dev.fonts. See #456.Would be nice if anyone could confirm this.