Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issue in put/get #69

Open
kif opened this issue Dec 19, 2018 · 3 comments
Open

Performance issue in put/get #69

kif opened this issue Dec 19, 2018 · 3 comments

Comments

@kif
Copy link

kif commented Dec 19, 2018

Hi,

I am facing many problems to upload/download (large) files with mpfshell, while it looks better with the ampy tool from adafruit.
I have the feeling mpfshell transfers all data in ascii while ampy does this binary but I am not completely sure about that.
Can you confirm ? how difficult would it be to offer another transfer mode ?

Cheers,
Jerome

@skorokithakis
Copy link
Collaborator

Hello,
you are correct: https://github.com/wendlers/mpfshell/blob/master/mp/mpfexp.py#L268

I wonder what it would take to switch to binary mode, transfer and switch back. I'll have to look into how ampy does it.

As always, PRs welcome!

@skorokithakis
Copy link
Collaborator

After some investigation, it seems that mpfshell already includes functions like read_until, enter_raw_repl, etc, but they aren't used. They should be.

@skorokithakis
Copy link
Collaborator

For reference, this is how ampy does it: https://github.com/adafruit/ampy/blob/master/ampy/files.py#L204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants