xml2brl and file2brl call translateFile for xml files and translateTextFile for text files. This doesn't seem like a big issue to me. John On Wed, Nov 02, 2011 at 01:11:22AM +0000, Michael Whapples wrote: > I have also tried it with xml2brl but for that I do not get a delay. Does the > xml2brl (or file2brl) actually use the translateString call? > > My C isn't really up to much, it might just extend as far as writing a > replica of the test case in C and see if the problem is still observed. > > Michael Whapples > On 1 Nov 2011, at 21:45, John J. Boyer wrote: > > > 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 > > 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