1. Re: getc( ) and gets( ) speed (was: fast bit rotation)

Tommy wrote:

<big snip>

> Another thing that was discussed a while ago was the performance of getc
> versus gets.

I splitted my reply to your post into 2 parts, and renamed the subject
of this part to the subject of that previous discussion. smile

> The conclusion was that gets is a lot faster, because it
> needs a lot less calls to read lots of data. I looked in the Euphoria
> docs and libraries and I found the function get_bytes, that could read a
> bunch of bytes. However the performance of get_bytes is not even close
> to what gets does.

When I realized that some time ago, I was very surprised. I had thought
that reading just a number of plain bytes from a file should be _faster_
then reading lines, because this needs some=B4interpretation.

> Robert, couldn't you consider making get_bytes a
> low-level, builtin routine to dramatically improve its performance? I
> think get_bytes is a really standard routine that is probably quite
> frequently used.

I would appreciate that _very_ much.

Regards,
   Juergen

--=20
 /"\  ASCII ribbon campain  |  This message has been ROT-13 encrypted
 \ /  against HTML in       |  twice for higher security.
  X   e-mail and news,      |
 / \  and unneeded MIME     |  http://home.arcor.de/luethje/prog/

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu