Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^5: Turning foreach into map?

by tilly (Archbishop)
on Apr 05, 2005 at 00:14 UTC ( [id://444828]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Turning foreach into map?
in thread Turning foreach into map?

I believe that I fixed that in Perl 5.6. (I may have the version of Perl wrong.)

Replies are listed 'Best First'.
Re^6: Turning foreach into map?
by ysth (Canon) on Apr 05, 2005 at 02:27 UTC
    If so, I apologize for the fud. I remember it coming up at least twice, with patches to curb the worst case behaviour, but thought that each time there was criticism, delay, and finally silence. But my memory is not what it could be.
      I know that I fixed map, and I know that the patch was accepted. But when I tested it again map is slower than foreach for long lists. (Not as badly as it was, however.)

      Looking at the current code, my patch to mapwhile is still in pp_ctl.c. Therefore the current performance problem in map has to be something else than what I was thinking. Do you know any details of what the current issue is?

        No, I don't. I'd think (without having actually looked at the code in a while) that there's the possibility of optimizing the assignment away in @foo = map ...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-26 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found