Name.get_code caching to make lookups faster

This commit is contained in:
Dave Halter
2014-04-12 15:27:35 +02:00
parent 7f288eb0b0
commit 3d9d0bfd03
2 changed files with 12 additions and 5 deletions

View File

@@ -36,7 +36,10 @@ def main(args):
run(code, i)
jedi.set_debug_function(notices=args['--debug'])
cProfile.runctx('run(code, n)', globals(), locals(), sort=args['-s'])
if args['--omit']:
run(code, n)
else:
cProfile.runctx('run(code, n)', globals(), locals(), sort=args['-s'])
if __name__ == '__main__':