Status: New Owner: ---- Labels: Type-Defect Priority-MediumNew issue 5 by joanie.d...@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 Step to reproduce: 1. Run the attached test script. Expected results: Each test string would be translated quickly.Actual results: The first string is translated quickly; the second string takes an extremely long time and nearly 100% CPU. (It will seem like a hang. But wait as it really will return. Eventually.)
Sample run of the script: ----- $ ./louistest.py Length of string to translate: 80 characters Translation completed in: 0.003 seconds Length of string to translate: 64 characters Translation completed in: 99.382 seconds ----- Other notes: * The tester goes with default config. * If braillePages=no, the bug does not appear. * Reliably reproducible in Fedora 16 (64 bit). * Using liblouisxml 2.4.0. Attachments: louistest.py 539 bytes For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com