Talk:Word wrap: Difference between revisions

→‎REXX Timings: add PL/I timing
(→‎REXX Timings: add explanition of time measurement)
(→‎REXX Timings: add PL/I timing)
Line 57:
version 1 30 28 19 seconds
version 2 16 10 3 seconds
PL/I 1 second
</pre>
versions 0 and 1 adapted as usual: @->a, $->d, = -> =""
Line 65 ⟶ 66:
 
:: Sorry, I forgot to mention that I adjusted all 3 versions so that they read the file (1 line) and create an output file (lineout instead of say). I could never display a million bytes on the screen in 10, 20 or what seconds :-) 200 paragraphs having 5000 characters each would be the same load. And I wanted to compare the algorithms' speed in some measurable way. --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 18:02, 21 August 2013 (UTC)
 
:: Translated version 2 to PL/I. Since PL/I has a limit of 32767 for character strings I had to cut the input into junks of 20000 bytes and add extra reads. Output is identical to REXX. --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 19:38, 21 August 2013 (UTC)
2,294

edits