[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?
8devices Community
https://www.8devices.com/community/

Will Python ware out Carambola 2 internal flash?
https://www.8devices.com/community/viewtopic.php?f=13&t=900
Page 1 of 1

Author:  valent [ 23 Jun 2015, 09:33 ]
Post subject:  Will Python ware out Carambola 2 internal flash?

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.

Author:  Giedrius [ 23 Jun 2015, 12:35 ]
Post subject:  Re: Will Python ware out Carambola 2 internal flash?

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).

Author:  valent [ 25 Jun 2015, 07:57 ]
Post subject:  Re: Will Python ware out Carambola 2 internal flash?

Thank for explaining.

Author:  valent [ 26 Jun 2015, 07:48 ]
Post subject:  Re: Will Python ware out Carambola 2 internal flash?

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?

Author:  Giedrius [ 26 Jun 2015, 13:38 ]
Post subject:  Re: Will Python ware out Carambola 2 internal flash?


Author:  valent [ 26 Jun 2015, 15:21 ]
Post subject:  Re: Will Python ware out Carambola 2 internal flash?

Thanks for clarifying that!

Author:  ks156 [ 19 Oct 2015, 11:26 ]
Post subject:  Re: Will Python ware out Carambola 2 internal flash?


Author:  valent [ 08 Mar 2017, 21:05 ]
Post subject:  Re: Will Python ware out Carambola 2 internal flash?


Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/