• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: Commit

ソースコードの管理場所


Commit MetaInfo

Revisione31d6aa11f23b3e94da4a2bf99ca52dab01641fa (tree)
Time2018-08-09 18:11:52
AuthorHironori Kitagawa <h_kitagawa2001@yaho...>
CommiterHironori Kitagawa

Log Message

ltj-lineskip.lua: optimize

Change Summary

Incremental Difference

--- a/src/ltj-lineskip.lua
+++ b/src/ltj-lineskip.lua
@@ -74,6 +74,7 @@ do
7474 end
7575
7676 do
77+ local p_dummy = ltjl.p_dummy
7778 local make_dir_whatsit = luatexja.direction.make_dir_whatsit
7879 local get_dir_count = luatexja.direction.get_dir_count
7980 local node_write = node.direct.write
@@ -88,8 +89,10 @@ do
8889 - getfield(new_b, mirrored and 'depth' or 'height')
8990 local lmin, adj = nil, 0
9091 local tail = to_direct(tex.nest[tex.nest.ptr].tail)
91- while tail and (id_glue<=getid(tail)) and (getid(tail)<=id_penalty) do
92- tail = node_prev(tail)
92+ if p_dummy~=ltj_profiler then
93+ while tail and (id_glue<=getid(tail)) and (getid(tail)<=id_penalty) do
94+ tail = node_prev(tail)
95+ end
9396 end
9497 if tail then
9598 if getid(tail)==id_hlist and getid(new_b)==id_hlist then
Show on old repository browser