1. 08 Jun, 2001 5 commits
    • Fred Drake's avatar
      Text from Tim & Guido discussing floating point arithmetic and what users · 05a2cc36
      Fred Drake authored
      need to understand about the binary & decimal fp, so that representation
      weirdness is documented somewhere.  This makes it easier to repond to "bug"
      reports caused by user confusion & ignorance of the issues.
      
      This closes SF patch #426208.
      05a2cc36
    • Skip Montanaro's avatar
      add warning about situation where code may be executed twice, once when · 339b9a69
      Skip Montanaro authored
      module is __main__ and once when module is imported.
      339b9a69
    • Fred Drake's avatar
      In the section on extending the profiler, add some additional discussion · fa03d21f
      Fred Drake authored
      about setting up the dispatch table, and update the OldProfile and
      HotProfile classes to the current implementations, showing the adjusted
      construction for the dispatch table.
      fa03d21f
    • Fred Drake's avatar
      call_trace(): Add an additional parameter -- pointer to a PyObject* · 84d2eac7
      Fred Drake authored
          that should be used to cache an interned version of the event
          string passed to the profile/trace function.  call_trace() will
          create interned strings and cache them in using the storage
          specified by this additional parameter, avoiding a lot of string
          object creation at runtime when using the profiling or tracing
          functions.
      
      All call sites are modified to pass the additional parameter, and four
      static PyObject* variables are allocated to cache the interned string
      objects.
      
      This closes SF patch #431257.
      84d2eac7
    • Fred Drake's avatar
      Performance improvements to the profiler: · 6011bfc5
      Fred Drake authored
      Ensure that all the default timers are called as functions, not an
      expensive method wrapper around a variety of different functions.
      
      Agressively avoid dictionary lookups.
      
      Modify the dispatch scheme (Profile.trace_dispatch_*(), where * is not
      'call', 'exception' or 'return') so that the callables dispatched to
      are simple functions and not bound methods -- this reduces the number
      of layers of Python call machinery that gets touched.
      
      Remove a couple of duplicate imports from the "if __name__ == ..."
      section.
      
      This closes SF patch #430948.
      6011bfc5
  2. 07 Jun, 2001 8 commits
  3. 06 Jun, 2001 6 commits
  4. 05 Jun, 2001 5 commits
  5. 04 Jun, 2001 5 commits
  6. 03 Jun, 2001 5 commits
  7. 02 Jun, 2001 6 commits