BASIC or Python?
Chris Barker
chrishbarker at home.net
Wed Jul 11 15:46:58 EDT 2001
Mirko Liss wrote:
> Python is often very slow, though. Maybe you should try Perl.
> I used logfile analyzers in Perl and Python (radiusreport and
> radiuscontext) and the perl program was much faster.
> But it used up much memory. When working with large logfiles,
> memory quickly got exhausted. The other analyzer needed
> less memory. I think that's because Python often copies a
> reference and not the actual data. Not wanting to use the
> swap partition all the time, I switched to the python code.
> Maybe I should have tried and optimized the perl program.
Maybe you coudl optimize the Python program, and get the speed and the
low memory usage!
> This is just an example, not a benchmark. So don't draw
> general conclusions.
A benchmark is just an example anyway...
--
Christopher Barker,
Ph.D.
ChrisHBarker at home.net --- --- ---
http://members.home.net/barkerlohmann ---@@ -----@@ -----@@
------@@@ ------@@@ ------@@@
Oil Spill Modeling ------ @ ------ @ ------ @
Water Resources Engineering ------- --------- --------
Coastal and Fluvial Hydrodynamics --------------------------------------
------------------------------------------------------------------------
More information about the Python-list
mailing list