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

SD Card performance with different read buffer size ( SYS_FS_FileRead ) #32

Open
ajefr opened this issue Sep 1, 2023 · 0 comments
Open

Comments

@ajefr
Copy link

ajefr commented Sep 1, 2023

Hello,
I'm facing a strange behaviour while using the SYS_FS_FileRead function.
I have one file to read.
If I read it with a 512 byte buffer, read time is correct (70 seconds).
If I read it with a smaller buffer, read time increase a little bit (77, 80 secs).
But if I try with a 1024 bytes buffer, the read time is catastrophic : maybe 20 minutes !

code is a "do while end of file" with this read function :
nBytesRead = SYS_FS_FileRead( fileHandle, (void*)read_buffer, buff_size);
buff_size was tested with 256 / 512 / 1024
Obviously, read_buffer has the correct size for handling the bytes amount.

How can it be possible ?

Thanks

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

No branches or pull requests

1 participant