Most efficient way to write data out to a text file?

candiazoo at attbi.com candiazoo at attbi.com
Thu Jun 27 13:36:13 EDT 2002


         Completed at Thu Jun 27 10:50:13 2002

         11623 function calls in 152.079 CPU seconds

   Ordered by: standard name

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        1    0.001    0.001  151.962  151.962 <string>:1(?)
      429    0.140    0.000    0.279    0.001 catalog_model.py:109(__init__)
      429    0.148    0.000    0.148    0.000 catalog_model.py:114(set_base_fee)

      429    0.014    0.000    0.014    0.000 catalog_model.py:118(set_page_fee)

      429    0.015    0.000    0.015    0.000 catalog_model.py:121(to_string)
     1703    0.104    0.000    0.104    0.000 catalog_model.py:509(fix_date_rang
e)
      848    0.157    0.000    0.157    0.000 catalog_model.py:57(__init__)
        1  150.396  150.396  151.961  151.961 catalog_model.py:573(generate_cata
log)
      848    0.027    0.000    0.027    0.000 catalog_model.py:66(set_wrk_inst)
      848    0.020    0.000    0.020    0.000 catalog_model.py:69(set_title)
      848    0.017    0.000    0.017    0.000 catalog_model.py:72(set_pub_name)
      848    0.017    0.000    0.017    0.000 catalog_model.py:75(set_std_num)
      848    0.016    0.000    0.016    0.000 catalog_model.py:78(set_date_range
)
      848    0.137    0.000    0.137    0.000 catalog_model.py:81(set_source_id)

       33    0.000    0.000    0.000    0.000 catalog_model.py:820(test_refresh)

       36    0.353    0.010    0.353    0.010 catalog_model.py:823(test_echo)
        1    0.000    0.000    0.000    0.000 catalog_model.py:826(test_cancel)
      419    0.015    0.000    0.033    0.000 catalog_model.py:89(__init__)
      419    0.136    0.000    0.136    0.000 catalog_model.py:92(to_string)
        1    0.000    0.000    0.000    0.000 connections.py:85(cursor)
        1    0.011    0.011    0.189    0.189 cursors.py:108(__do_query)
        1    0.022    0.022    0.022    0.022 cursors.py:135(_fetch_row)
        1    0.000    0.000    0.000    0.000 cursors.py:145(_check_for_warnings
)
        1    0.178    0.178    0.178    0.178 cursors.py:160(_get_result)
        2    0.002    0.001    0.002    0.001 cursors.py:162(close)
        1    0.000    0.000    0.212    0.212 cursors.py:167(_query)
      671    0.027    0.000    0.036    0.000 cursors.py:174(fetchone)
        1    0.000    0.000    0.000    0.000 cursors.py:21(__init__)
        1    0.000    0.000    0.000    0.000 cursors.py:28(__del__)
        2    0.000    0.000    0.000    0.000 cursors.py:31(close)
      671    0.009    0.000    0.009    0.000 cursors.py:36(_check_executed)
        2    0.000    0.000    0.000    0.000 cursors.py:46(_get_db)
        1    0.000    0.000    0.212    0.212 cursors.py:51(execute)
        0    0.000             0.000          profile:0(profiler)
        1    0.117    0.117  152.079  152.079 profile:0(test.generate_catalog())



More information about the Python-list mailing list