Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: best way to read and save long list of words

by GrandFather (Saint)
on Apr 19, 2020 at 00:24 UTC ( [id://11115758]=note: print w/replies, xml ) Need Help??


in reply to Re: best way to read and save long list of words
in thread best way to read and save long list of words

or if time becomes significant maybe the OP needs to rethink and start using a database instead? The rethink part may mean replacing the regex with some other technique of course.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
  • Comment on Re^2: best way to read and save long list of words

Replies are listed 'Best First'.
Re^3: best way to read and save long list of words
by davido (Cardinal) on Apr 19, 2020 at 04:52 UTC

    I had considered earlier mentioning that if there's a list of words that may need to have additions once in awhile, DBD::SQLite isn't a bad alternative.

    But then I couldn't put my finger on what problem we're solving for here. Optimizing disk usage? Optimizing read speed? I understand he's constructing a big regex out of the words, but is that even the best approach at solving whatever the problem is that's being solved? Maybe a SELECT would be useful? It's just a little hard to recommend an approach without understanding the objective.


    Dave

      Indeed. That is why I suggested a "rethink". I strongly suspect we are helping to solve the wrong problem, but with the information we have even that is not clear.

      Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 14:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found