dmanty45 / bots

Automatically exported from code.google.com/p/bots
0 stars 0 forks source link

improve: performance improvement (grammar.py) #96

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
in grammar.py, copy.deepcopy consumed a lot of time.
replaced this by own function.
is much quicker now.

Original issue reported on code.google.com by hjebb...@gmail.com on 2 Nov 2011 at 12:16

GoogleCodeExporter commented 8 years ago
another improvement:
bots knows which grammars have been imported before, so the checks and 
manipulations are not done again.

Original comment by hjebb...@gmail.com on 2 Nov 2011 at 2:50

GoogleCodeExporter commented 8 years ago
The improvements are especially useful for x12, which has got very large 
grammars.

Original comment by hjebb...@gmail.com on 2 Nov 2011 at 2:51

GoogleCodeExporter commented 8 years ago
also added in repository:
profile.py
I use this to start bots-engine using a profiler.
this way you can see eg where most time is spend in a run.

Original comment by hjebb...@gmail.com on 2 Nov 2011 at 2:53

GoogleCodeExporter commented 8 years ago
I have noticed the overall CPU usage of bots engine seems less, although the 
time for each run has not changed noticeably (this is more limited by file 
transfers).

Original comment by mjg1964 on 8 Nov 2011 at 9:14

GoogleCodeExporter commented 8 years ago
hi Mike,

for edifact, I think you are right.
but it is noticeable in x12.
the file size of a x12 grammar is 10 times of a edifact grammar.
test runs of x12 have been reduced from 20sec to 4 seconds ;-))

Original comment by hjebb...@gmail.com on 8 Nov 2011 at 10:53

GoogleCodeExporter commented 8 years ago

Original comment by hjebb...@gmail.com on 10 Sep 2013 at 12:44