1. 08 Jun, 2001 2 commits
    • 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
  8. 01 Jun, 2001 1 commit
  9. 31 May, 2001 2 commits