1. 19 Dec, 2023 2 commits
    • Damien George's avatar
      esp32: Add MICROPY_GC_INITIAL_HEAP_SIZE option and tune it. · f6d63087
      Damien George authored
      This gets back the old heap-size behaviour on ESP32, before auto-split-heap
      was introduced: after the heap is grown one time the size is 111936 bytes,
      with about 40k left for the IDF.  That's enough to start WiFi and do a
      HTTPS request.
      Signed-off-by: default avatarDamien George <damien@micropython.org>
      f6d63087
    • Damien George's avatar
      py/gc: Improve calculation of new heap size in split-heap-auto mode. · 97b13132
      Damien George authored
      There are two main changes here to improve the calculation of the size of
      the next heap area when automatically expanding the heap:
      - Compute the existing total size by counting the total number of GC
        blocks, and then using that to compute the corresponding number of bytes.
      - Round the bytes value up to the nearest multiple of BYTES_PER_BLOCK.
      
      This makes the calculation slightly simpler and more accurate, and makes
      sure that, in the case of growing from one area to two areas, the number
      of bytes allocated from the system for the second area is the same as the
      first.  For example on esp32 with an initial area size of 65536 bytes, the
      subsequent allocation is also 65536 bytes.  Previously it was a number that
      was not even a multiple of 2.
      Signed-off-by: default avatarDamien George <damien@micropython.org>
      97b13132
  2. 18 Dec, 2023 6 commits
  3. 15 Dec, 2023 9 commits
  4. 14 Dec, 2023 3 commits
  5. 12 Dec, 2023 5 commits
  6. 11 Dec, 2023 10 commits
  7. 08 Dec, 2023 5 commits