Author rbcollins
Recipients adaptivelogic, eric.snow, gvanrossum, ncoghlan, pitrou, rbcollins, rhettinger, vstinner, yselivanov
Date 2015-01-19.02:12:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421633558.64.0.0260564410685.issue17911@psf.upfronthosting.co.za>
In-reply-to
Content
And this improves the scaling of the cache stating overhead, but we may well want to fix this more fundamentally - e.g. by linking the cache ownership into the import system somehow, so that when a file is reimported, the cached source is automatically evicted, and format_stack etc have no need to stat at all.

I tested this with the following script in timeit:

import traceback

def recurse(count):
  if count> 0:
    return recurse(count - 1)
  return traceback.format_stack()

def doit():
    len(recurse(500))
History
Date User Action Args
2015-01-19 02:12:38rbcollinssetrecipients: + rbcollins, gvanrossum, rhettinger, ncoghlan, pitrou, vstinner, eric.snow, yselivanov, adaptivelogic
2015-01-19 02:12:38rbcollinssetmessageid: <1421633558.64.0.0260564410685.issue17911@psf.upfronthosting.co.za>
2015-01-19 02:12:38rbcollinslinkissue17911 messages
2015-01-19 02:12:38rbcollinscreate