diff options
author | Yonatan Goldschmidt <yon.goldschmidt@gmail.com> | 2019-11-25 17:21:54 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-11-26 14:26:24 +1100 |
commit | 4318a6d755b8365e4dfd4842c994003176cf6b70 (patch) | |
tree | d0225233c69c328f9bce4b31d6bda9b119696244 /docs/esp8266/tutorial | |
parent | 1675b98e74e6af0bd5edaf236a275dcb7735069e (diff) | |
download | micropython-4318a6d755b8365e4dfd4842c994003176cf6b70.tar.gz micropython-4318a6d755b8365e4dfd4842c994003176cf6b70.zip |
py/objstringio: Slightly optimize stringio_copy_on_write for code size.
With the memcpy() call placed last it avoids the effects of registers
clobbering. It's definitely effective in non-inlined functions, but even
here it is still making a small difference. For example, on stm32, this
saves an extra `ldr` instruction to load `o->vstr` after the memcpy()
returns.
Diffstat (limited to 'docs/esp8266/tutorial')
0 files changed, 0 insertions, 0 deletions