1. 25 Mar, 2015 1 commit
    • Paul Sokolovsky's avatar
      py: Cast mp_obj_t to concrete types explicitly. · 3d598256
      Paul Sokolovsky authored
      mp_obj_t internal representation doesn't have to be a pointer to object,
      it can be anything.
      
      There's also a support for back-conversion in the form of MP_OBJ_UNCAST.
      This is kind of optimization/status quo preserver to minimize patching the
      existing code and avoid doing potentially expensive MP_OBJ_CAST over and
      over. But then one may imagine implementations where MP_OBJ_UNCAST is very
      expensive. But such implementations are unlikely interesting in practice.
      3d598256
  2. 23 Mar, 2015 2 commits
  3. 22 Mar, 2015 1 commit
  4. 21 Mar, 2015 1 commit
    • Damien George's avatar
      py: Combine duplicated code that converts members from a lookup. · 55b74d1f
      Damien George authored
      Despite initial guess, this code factoring does not hamper performance.
      In fact it seems to improve speed by a little: running pystone(1.2) on
      pyboard (which gives a very stable result) this patch takes pystones
      from 1729.51 up to 1742.16.  Also, pystones on x64 increase by around
      the same proportion (but it's much noisier).
      
      Taking a look at the generated machine code, stack usage with this patch
      is unchanged, and call is tail-optimised with all arguments in
      registers.  Code size decreases by about 50 bytes on Thumb2 archs.
      55b74d1f
  5. 20 Mar, 2015 6 commits
  6. 19 Mar, 2015 2 commits
  7. 17 Mar, 2015 1 commit
  8. 16 Mar, 2015 5 commits
  9. 14 Mar, 2015 6 commits
  10. 12 Mar, 2015 1 commit
  11. 11 Mar, 2015 1 commit
  12. 06 Mar, 2015 1 commit
  13. 05 Mar, 2015 1 commit
  14. 04 Mar, 2015 1 commit
  15. 03 Mar, 2015 6 commits
  16. 02 Mar, 2015 4 commits