Json class dict store in variables
Re: Json class dict store in variables
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.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Json class dict store in variables
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, anywaydeshipu wrote:...I doubt this would be accepted...
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.