[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4694: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4695: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4696: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
8devices Community - View topic - Will Python ware out Carambola 2 internal flash?
www.8devices.com
View unanswered posts | View active topics It is currently 28 Mar 2024, 08:31



Reply to topic  [ 8 posts ] 
 Will Python ware out Carambola 2 internal flash? 
Author Message

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
Profile

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
Profile

Joined: 18 Nov 2013, 18:44
Posts: 54
Thank for explaining.


25 Jun 2015, 07:57
Profile

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
Profile

Joined: 11 Jun 2014, 14:45
Posts: 135


26 Jun 2015, 13:38
Profile

Joined: 18 Nov 2013, 18:44
Posts: 54
Thanks for clarifying that!


26 Jun 2015, 15:21
Profile

Joined: 15 Nov 2013, 11:38
Posts: 10


19 Oct 2015, 11:26
Profile

Joined: 18 Nov 2013, 18:44
Posts: 54


08 Mar 2017, 21:05
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 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

Search for:
Jump to:  
cron

Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.