Skip to content
Snippets Groups Projects
  1. Apr 10, 2016
  2. Mar 27, 2016
  3. Mar 24, 2016
  4. Jan 11, 2016
  5. Dec 09, 2015
  6. Nov 29, 2015
  7. Oct 18, 2015
  8. Aug 13, 2015
  9. May 12, 2015
  10. Jan 28, 2015
    • Damien George's avatar
      py: Change vstr so that it doesn't null terminate buffer by default. · 0d3cb672
      Damien George authored
      This cleans up vstr so that it's a pure "variable buffer", and the user
      can decide whether they need to add a terminating null byte.  In most
      places where vstr is used, the vstr did not need to be null terminated
      and so this patch saves code size, a tiny bit of RAM, and makes vstr
      usage more efficient.  When null termination is needed it must be
      done explicitly using vstr_null_terminate.
      0d3cb672
  11. Jan 23, 2015
  12. Jan 21, 2015
    • Damien George's avatar
      py: Remove mp_obj_str_builder and use vstr instead. · 05005f67
      Damien George authored
      With this patch str/bytes construction is streamlined.  Always use a
      vstr to build a str/bytes object.  If the size is known beforehand then
      use vstr_init_len to allocate only required memory.  Otherwise use
      vstr_init and the vstr will grow as needed.  Then use
      mp_obj_new_str_from_vstr to create a str/bytes object using the vstr
      memory.
      
      Saves code ROM: 68 bytes on stmhal, 108 bytes on bare-arm, and 336 bytes
      on unix x64.
      05005f67
    • Damien George's avatar
      py: Add mp_obj_new_str_from_vstr, and use it where relevant. · 0b9ee861
      Damien George authored
      This patch allows to reuse vstr memory when creating str/bytes object.
      This improves memory usage.
      
      Also saves code ROM: 128 bytes on stmhal, 92 bytes on bare-arm, and 88
      bytes on unix x64.
      0b9ee861
  13. Jan 01, 2015
  14. Dec 05, 2014
  15. Nov 16, 2014
  16. Oct 24, 2014
  17. Oct 23, 2014
  18. Oct 18, 2014
  19. Oct 17, 2014
  20. Oct 16, 2014
  21. Oct 15, 2014
  22. Aug 22, 2014
  23. Jul 27, 2014
  24. Jul 22, 2014
  25. Jul 19, 2014
    • Damien George's avatar
      py: Add stream reading of n unicode chars; unicode support by default. · 1694bc73
      Damien George authored
      With unicode enabled, this patch allows reading a fixed number of
      characters from text-mode streams; eg file.read(5) will read 5 unicode
      chars, which can made of more than 5 bytes.
      
      For an ASCII stream (ie no chars > 127) it only needs to do 1 read.  If
      there are lots of non-ASCII chars in a stream, then it needs multiple
      reads of the underlying object.
      
      Adds a new test for this case.  Enables unicode support by default on
      unix and stmhal ports.
      1694bc73
  26. Jul 13, 2014
  27. Jul 03, 2014
  28. Jun 29, 2014
    • stijn's avatar
      windows: Sync mpconfigport.h with the unix' version · ec6fa873
      stijn authored
      - rearrange/add definitions that were not there so it's easier to compare both
      - use MICROPY_PY_SYS_PLATFORM in main.c since it's available anyway
      - define EWOULDBLOCK, it is missing from ingw32
      ec6fa873
  29. Jun 26, 2014
  30. Jun 13, 2014
Loading