Hi Erich,

you wrote

For best performance, use stream~arrayIn(), which is by far preferable to
> any other means.


I wonder if this is something that has changed and been established through
comparisons using 5.0.0.

I ask, because sometime ago there was a lot of discussion on the rexxla
list (or perhaps it was comp.lang.rexx) where after much trial and error it
was established that using charin to read the entire file into a string
followed by a makearray on the string offered the best performance.

It would be good to know authoritatively.

Jon

On 5 July 2017 at 20:00, Erich Steinböck <[email protected]> wrote:

> Hi P.O.
>
> DO WHILE qfileIn~lines <> 0
>>
> Never use Stream method lines() in a loop.  Other than the LINES()
> built-in function, it's argument defaults to "count" which is very
> expensive.  Use stream~lines("normal") or DO stream~lines()or SIGNAL ON
> NOTREADY instead.
>
> For best performance, use stream~arrayIn(), which is by far preferable to
> any other means.
>
> The second time it takes 50 MINUTES to finish!
>>
> I can confirm the performance hit you're observing. I really have no good
> answer what is causing this .. I have opened [bugs:#1467]
> <https://sourceforge.net/p/oorexx/bugs/1467/>.
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to