Talk:Word wrap: Difference between revisions
Content added Content deleted
(→REXX Timings: added the last timings (for optimization of a REXX program). -- ~~~~) |
m (→REXX timings: updated the latest REXX program timings. -- ~~~~) |
||
Line 276: | Line 276: | ||
:::::* REXX version 2 1.05 seconds (optimized by making the '''ow''' subroutine non-destructive) |
:::::* REXX version 2 1.05 seconds (optimized by making the '''ow''' subroutine non-destructive) |
||
:::::* REXX version 2 1.01 seconds (optimized by making the '''ow''' subroutine in-line) |
:::::* REXX version 2 1.01 seconds (optimized by making the '''ow''' subroutine in-line) |
||
:::::* REXX version 2 0. |
:::::* REXX version 2 0.96 seconds (optimized the inner DO loop, eliminated an ''if'' statement) |
||
The '''lastpos''' BIF was used to find the last blank (within a field of '''W''' characters instead of searching for the last blank character by character). |
The '''lastpos''' BIF was used to find the last blank (within a field of '''W''' characters instead of searching for the last blank character by character). |
||
<br>Further optimization was done using '''parse''' instead of '''substr''' and other such thingys. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:39, 21 August 2013 (UTC) |
<br>Further optimization was done using '''parse''' instead of '''substr''' and other such thingys. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:39, 21 August 2013 (UTC) |