www.8devices.com
|
|
|
Page 1 of 1
|
[ 8 posts ] |
|
Will Python ware out Carambola 2 internal flash?
Author |
Message |
valent
Joined: 18 Nov 2013, 18:44 Posts: 54
|
Hi, am I wrong to fear python wearing out internal flash? Is python script being compiled each time it is run or only first time? Is compiled binary being written to flash or is it only kept in ram?
Thanks.
|
23 Jun 2015, 09:33 |
|
|
Giedrius
Joined: 11 Jun 2014, 14:45 Posts: 135
|
Python scripts are compiled only when needed (i.e. the source file has changed) and in general it should not be an issue. Even if the code changes from time to time it won't be an issue. It should only be of concern if you have a frequent (beyond human typing limits) code generation and execution. In that case you could use the RAM disk (work in /tmp directory) or python's -B flag (less preferable).
|
23 Jun 2015, 12:35 |
|
|
valent
Joined: 18 Nov 2013, 18:44 Posts: 54
|
Thank for explaining.
|
25 Jun 2015, 07:57 |
|
|
valent
Joined: 18 Nov 2013, 18:44 Posts: 54
|
Strange, I actually don't see any pyc files being created in /bin/ folder where my python files are located.
Using find / -name *.pyc shows only few *.pyc files in /usr/lib/python2.7/
Strange... so what is happening? Are pyc files not being created at all when I run my python scritps on Carambola 2? Or are created and deleted?
|
26 Jun 2015, 07:48 |
|
|
Giedrius
Joined: 11 Jun 2014, 14:45 Posts: 135
|
|
26 Jun 2015, 13:38 |
|
|
valent
Joined: 18 Nov 2013, 18:44 Posts: 54
|
Thanks for clarifying that!
|
26 Jun 2015, 15:21 |
|
|
ks156
Joined: 15 Nov 2013, 11:38 Posts: 10
|
|
19 Oct 2015, 11:26 |
|
|
valent
Joined: 18 Nov 2013, 18:44 Posts: 54
|
|
08 Mar 2017, 21:05 |
|
|
|
Page 1 of 1
|
[ 8 posts ] |
|
Who is online |
Users browsing this forum: No registered users |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|