5610 views|24 replies

1w

Posts

25

Resources
The OP
 

MicroPython program optimization principles [Copy link]

 
 Here are the program optimization principles introduced by MicroPython author Damien in the video at pyconau 2018: Functions that do not allocate memory in the heap:
  • Expressions
  • if, while, for and try
  • Local variables
  • Small integers
  • Calling functions/methods
  • Built-in functions: all, any, callable, getatr, hasattr, isinstance, issubclass, len, max, min, ord, print, sum
游客,如果您要查看本帖隐藏内容请回复



Latest reply

Learning and learning, thanks for sharing!   Details Published on 2019-8-14 11:06
 
 

129

Posts

1

Resources
2
 
Study
 
 
 

2

Posts

0

Resources
3
 
This is very helpful
 
 
 

1368

Posts

6

Resources
4
 
I am still learning, I want to learn from experience
Personal signature专注智能产品的研究与开发,专注于电子电路的生产与制造……QQ:2912615383,电子爱好者群: void
 
 
 

63

Posts

0

Resources
5
 
 
 
 

1453

Posts

18

Resources
6
 
study
Personal signaturehttp://weibo.com/u/1391449055
 
 
 

9

Posts

0

Resources
7
 
Learning, thanks for sharing
 
 
 

202

Posts

1

Resources
8
 
Study
 
 
 

128

Posts

0

Resources
9
 
This must be understood, thank you moderator
 
 
 

113

Posts

0

Resources
10
 
Manual likes~~~
 
 
 

1

Posts

0

Resources
11
 
Learn together and strive to improve
 
 
 

2

Posts

0

Resources
12
 
Thanks
 
 
 

32

Posts

0

Resources
13
 
Learn
 
 
 

1

Posts

0

Resources
14
 
Xiangkan
 
 
 

2

Posts

0

Resources
15
 
Learn
 
 
 

2

Posts

0

Resources
16
 
Thank you, God~~~~
 
 
 

4

Posts

0

Resources
17
 
Study
 
 
 

2

Posts

0

Resources
18
 

Learning, thanks for sharing
 
 
 

869

Posts

0

Resources
19
 
Good post, like it, top post
 
 
 

30

Posts

3

Resources
20
 
66666
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list