• Croquette@sh.itjust.works
    link
    fedilink
    arrow-up
    8
    ·
    7 days ago

    Unless you are at the edge of the firmware and software, this isn’t something you work with a lot.

    When you transfer files or data to a memory space, you can’t drop the whole file/data to memory directly because the resources are limited on the cpu/mcu. It wouldn’t make sense to have a page as big as your biggest theorical data size.

    Page size determine how much data at a time can be transferred into memory.

    In term of performance, writing the page to memory is usually the bottle neck. So 4k vs 64k means you need to write to memory 16 times more and thus making the performance better on 64k page size.