[IronPython] Execfile in IronPython 2.0 slower then 1.1

Cenovsky, Lukas lukas.cenovsky at radiantsystems.com
Thu May 14 11:36:12 CEST 2009


I was playing yesterday with something and found that execfile is about
10 times slower in Ironpython 2.0 then in 1.1.
Does anyone have an idea why?

Here is the snippet:

from time import time
f = open('test.txt', 'w')
f.write('res = []\n')
f.write("res.append({'1': 'one', '2': 'two'})\n"*10000)
f.close()
t = time()
execfile('test.txt')
print 'Execfile took:', time() - t

Ironpython 1.1:
Execfile took: 5.37503814697

Ironpython 2.0:
Execfile took: 50.3440628052

PS: I know the example is stupid - I'm just wondering why such
difference?

--
-- Lukas




More information about the Ironpython-users mailing list