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

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 1 Nov 2011 16:45:29 -0500

liblouisutdml reads an initialization file and configuration file when 
it starts. There is also extra processing for very short files. I 
haven't noticed unusual delays when using the file2brl program. This 
applies to liblouisxml as well.

John

On Tue, Nov 01, 2011 at 05:42:06PM +0000, liblouisxml@xxxxxxxxxxxxxx wrote:
> 
> 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

-- 
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities

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

Other related posts: