[liblouis-liblouisxml] Re: Issue 5 in liblouisxml: Translating short strings takes an extremely long time and gobbles up CPU if braillePages=yes

  • From: liblouisxml@xxxxxxxxxxxxxx
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 01 Nov 2011 17:42:06 +0000


Comment #1 on issue 5 by mwhapp...@xxxxxxxxx: Translating short strings takes an extremely long time and gobbles up CPU if braillePages=yes
http://code.google.com/p/liblouisxml/issues/detail?id=5

I am fairly confident that the issue does not lie within the python bindings. I did a similar measuring of the time as that approach in the test script, applying that in the bindings themselves so that only the actual call to liblouisxml would be measured. The time reported for the C call in the bindings came out as 0.012 for the long string and 270.782 for the short string, the test script reported 0.014 for the long string and 270.782 for the short string. As the only code between the start time being taken and the end time being taken in my modified version of the bindings was the if statement where the C call is made and handling should an error value be returned, to me this says that other parts of the bindings cannot be to blame. The only further test which I think would prove it more is to write a simple test C programme.

For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: