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

_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to