You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/03/29 13:28:03 UTC
[GitHub] [mynewt-core] kasjer opened a new pull request #1731: spiflash: Add
simple cache
kasjer opened a new pull request #1731: spiflash: Add simple cache
URL: https://github.com/apache/mynewt-core/pull/1731
Reading 1 byte from spiflash generates 5 bytes of SPI traffic.
Reading 8 bytes on by one is 40 bytes on SPI.
Reading 8 bytes at once is 12 bytes on SPI.
This change improves reading time when there are a lot of small
read requests.
This can be useful if FCB is stored on external spiflash.
Tested on 440KB FCB that stored CBOR data
fcb_walk time in ms
no cache: 53625 100%
4 bytes: 41570 77%
8 bytes: 38695 72%
12 bytes: 36695 68%
16 bytes: 37031 69%
20 bytes: 36875 68%
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services