Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Fastest way to get byte offsets of a string using tell

by bellaire (Hermit)
on Mar 12, 2009 at 13:20 UTC ( [id://750157]=note: print w/replies, xml ) Need Help??


in reply to Fastest way to get byte offsets of a string using tell

It looks like you already have a script that does most of what you want. You're already getting the offset of the line.

For the first question regarding offsets, what have you tried, and why didn't it work? Your script stops short of making any effort to actually do this. This isn't a place where you can write half a script and then expect us to finish it, so what specifically is stopping you from accomplishing this?

As to optimization, never do it before you've done profiling. If your script is not running acceptably fast, find out where the slow parts are and address them. You need to do profiling to identify the slow parts. Do you need direction as to how to perform profiling?
  • Comment on Re: Fastest way to get byte offsets of a string using tell

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found