Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^3: Edit huge file

by frozenwithjoy (Priest)
on Jun 19, 2013 at 00:49 UTC ( #1039699=note: print w/replies, xml ) Need Help??

in reply to Re^2: Edit huge file
in thread Edit huge file

Thanks. For my own future reference, do you have a suggestion for a file size that is too large to use with Tie::File?

Replies are listed 'Best First'.
Re^4: Edit huge file
by BrowserUk (Pope) on Jun 19, 2013 at 01:14 UTC

    Hm. Say 1000 lines/100kB.

    Its actually not too bad for files ~10x that iff you know

    1. how it works:

      An LRU cache of limited size:

    2. what not to do:

      Don't use @theArray in either a list or scalar context;

    3. configure it correctly:

      The memory and dw_size options can interact in interesting but unintuitive ways.

      Bigger is not always better, especially if the predominant operations are deletion or insertion of whole lines, rather than in-place modification of existing lines.

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039699]
[LanX]: the last
Discipulus yes a very bad day
[shmem]: grandola, vila morena
[shmem]: LanX: ah, that one. You'll get the bug reports also :P
[Discipulus]: upvote me! i'll make pm great again! ;=)
[shmem]: Discipulus reminds me of an irish saying: "I would guess a tomorrow can wait 'til this day is done" :-)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-04-29 22:49 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (534 votes). Check out past polls.