[pdftex-Bugs][4290] processing speed: pdftex slows down when processes long files in DVI mode
![](https://secure.gravatar.com/avatar/7d19e6b2520f265ddf2121b2c29cc0d9.jpg?s=120&d=mm&r=g)
Bugs item #4290, was opened at 2009-06-26 17:55
Status: Closed Priority: 3 Submitted By: The Thanh Han (hanthethanh) Assigned to: Nobody (None) Summary: processing speed: pdftex slows down when processes long files in DVI mode Category: None Group: None Resolution: Fixed
Initial Comment: see http://www.ntg.nl/pipermail/ntg-pdftex/2009-May/003786.html ----------------------------------------------------------------------
Comment By: The Thanh Han (hanthethanh) Date: 2009-12-01 21:24
Message:
fixed in 1.40.10
----------------------------------------------------------------------
Comment By: The Thanh Han (hanthethanh)
Date: 2009-07-01 19:46
Message:
with the help from Taco and Hartmut, the problem has been traced down to this:
section 816 from tex the program says:
,--------
| This code assumes that a |glue_node| and a |penalty_node| occupy the
| same number of |mem|~words.
| @^data structure assumptions@>
|
| @
I strongly suggest you just change the penalty size to 4, because the other possibilities that I see have much more impact. Starting from the head node each time is quite slow (much slower than the speed penalty incurred by the extra size of the penalty node).
There are other options, but increasing the penalty size is simplest by far. And it is not like a typical paragraph has hundreds of penalties, anyway.
In luatex this worked out reasonably well in the end because in luatex the node list is doubly linked. But in pdftex there is no room for an extra back pointer in the node objects (nor is there in either tex or xetex) so that won't work without a lot of work.
and my response: ,-------- | yes this seems a good option. There is still one catch that | pdftex without synctex still has glue_node_size=2 and | doesn't need this change. Therefore this should better be | done by synctex. `-------- I have sent an email asking synctex's author for this change. ---------------------------------------------------------------------- You can respond by visiting: http://sarovar.org/tracker/?func=detail&atid=493&aid=4290&group_id=106
participants (1)
-
pdftex-bugs@sarovar.org