Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: perl io and linux issues

by Malkavian (Friar)
on Mar 30, 2001 at 15:40 UTC ( #68336=note: print w/replies, xml ) Need Help??


in reply to Re: perl io and linux issues
in thread perl io and linux issues

I think the issue in question is that even running over a file, finding newlines, and forming lines, in the same way that readline should do, works faster in linux as a read of a block of data and subsequent line formation than as a readline.
An initial answer to this has already been made by tye in the note here.

I believe the question is asking more why Perl IO is broken on Linux, and what can be done to work around this in the meantime.
Cheers,

Malk

Replies are listed 'Best First'.
Re: perl io and linux issues
by dino (Sexton) on Apr 04, 2001 at 20:42 UTC
    After a little digging it appears not to be a problem with linux per se but glibc 2. (Please correct me if I'm wrong) Fast stdio io in perl uses the hooks _ptr and _cnt specified in the normal stdio.h. Unfortunately _cnt is not visible in the glibc 2 version. I've seen mentions of a glue.c file in glibc source that may allow a work around.

    If this is a glibc 2 then there may be future problems on other platforms, or do other platforms that use glibc 2 and have fast perl io, have a modified stdio.h?

    Perhaps sfio allows such direct hooks, has anybody else made progress on this issue?

    regards dino

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://68336]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2023-10-01 03:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?