Talk:Word wrap: Difference between revisions
Content added Content deleted
Walterpachl (talk | contribs) (→handling long words: hyphenation) |
Walterpachl (talk | contribs) (→REXX Timings: new section) |
||
Line 43: | Line 43: | ||
:: Wouldn't proper (correct) hyphenation be way beyond the scope of this task (and wiki)? --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 06:42, 21 August 2013 (UTC) |
:: Wouldn't proper (correct) hyphenation be way beyond the scope of this task (and wiki)? --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 06:42, 21 August 2013 (UTC) |
||
== REXX Timings == |
|||
I created a file containing one line of about 1000000 characters containing words of 1 to 90 characters, randomly distributed such as |
|||
<pre> |
|||
'A nnnnnnnnnnnnnn ooooooooooooooo nnnnnnnnnnnnnn cccc...' |
|||
</pre> |
|||
Timing of the 3 versions show on Windows XP using ooRexx: |
|||
<pre> |
|||
width 10 72 1000 |
|||
version 0 29 27 19 seconds |
|||
version 1 30 28 19 seconds |
|||
version 2 16 10 3 seconds |
|||
</pre> |
|||
versions 0 and 1 adapted as usual: @->a, $->d, = -> ="" |
|||
version 0 has a minor flaw: The output has a leading blank. Otherwise outputs are identical. --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 09:55, 21 August 2013 (UTC) |