Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Can I speed this up? (repetitively scanning ranges in a large array)

by daverave (Scribe)
on Nov 02, 2010 at 18:24 UTC ( [id://869065]=note: print w/replies, xml ) Need Help??


in reply to Re: Can I speed this up? (repetitively scanning ranges in a large array)
in thread Can I speed this up? (repetitively scanning ranges in a large array)

That's a good idea that would surely help. However, I would have to check how much effect it will have.

The example I gave is very small - less than 1000 ranges compared to the usual 25k. Also, I'm not sure if it represents the normal proportion of "contained" ranges (I would guess it's much lower than the 95% in this specific case).

So, I will surely incorporate it and try it out, but I'm not confident it will have a great effect in the average case.

UPDATEIt seems after in-lining the original object methods, filtering out a ranges takes about the same time as processing it (perhaps even longer). I therefore stopped using this for the meantime, although this seemed like a very nice idea. Perhaps there's a more efficient way of filtering the ranges?

  • Comment on Re^2: Can I speed this up? (repetitively scanning ranges in a large array)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-19 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found