[reportlab-users] Chasing pyHnj error
Dinu Gherman
gherman at darwin.in-berlin.de
Sun Nov 25 09:02:40 EST 2007
Robin Becker:
> As for new paragraph classes I have been messing with Kuchling's
> tex_wrap and have managed to get the run time down to something
> reasonable. In python I have the time down from over 3.06" to 0.5".
> This just corresponds to the simplest of line breakings. His
> version doesn't do hyphenation or even follow Knuth's algorithm all
> that carefully.
>
> I believe it should be possible to improve much further. I
> translated simply to pyrex and have the time down again to 0.23".
> With more agressive C style coding that should improve further
> (perhaps another factor of 10 since my pyrex version is still using
> lots of python variables in the main loop).
Well, I first strive for having a paragraph class which:
- is human-readable
- has a pylint coefficient of => 7.5/10 (instead of the current
value of 0.75/10 for RL's paragraph.py ;-)
- has hyphenation
- has inline images, and
- has an extension mechanism for custom tags
Once I'll have that I'll come back to you for ideas on performance.
;-)
Regards,
Dinu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20071125/3e66db9d/attachment.html>
More information about the reportlab-users
mailing list