coates’s avatarcoates’s Twitter Archive—№ 23,653

    1. Had a performance problem on MicroPython ESP-32. Did some tests (regular tools like -m cProfile not available). I know “C space” is faster than “user space” in interpreted languages, but wow, what a difference over on the ESP-32: json (C) vs handroll. gist.github.com/scoates/41bd9af6f611dc42292961acfbb136fa#file-1-outputs-txt
  1. …in reply to @coates
    If I had to guess without digging further, I’d say the relatively-new f-string implementation in MicroPython could be optimized to greatly improve this, but this is a great reminder to not waste resources like I was doing with hand-rolling a job that json.dumps() does better.