Page 2 of 2

Re: Json class dict store in variables

Posted: Thu Sep 14, 2017 3:44 pm
by deshipu
Considering how MicroPython tries to stay small and simple, and to keep only one way of doing things, I doubt this would be accepted. The "pixel" and "fill" methods are there for compatibility with the initial API which didn't use framebuf, I assume.

Re: Json class dict store in variables

Posted: Fri Sep 15, 2017 4:37 pm
by pythoncoder
deshipu wrote:...I doubt this would be accepted...
You're almost certainly right :( But when I looked at it I found the performance of the pixel() method was improved by a factor of nearly 3 with this trivial change https://github.com/micropython/micropython/pull/3318. It removes the overhead of a method call and a data member lookup. Worth a punt, anyway ;)