Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Out of memory and While replacements with excel XLSX application

by Anonymous Monk
on Oct 08, 2012 at 08:00 UTC ( #997762=note: print w/ replies, xml ) Need Help??


in reply to Out of memory and While replacements with excel XLSX application

I have a feeling I am copying the data into memory several times, but I do not know how to avoid this.

Rewrite your program into subroutines, use lots of references, and watch the size of your program at each stage

There is a lot of copy/paste duplication in your program that should be rewritten

There are a lot of short variable names, way too many to keep track of, way too many to help you substantially rewrite what you posted

Also you say The total amount of rows is close to 1 million. and that is close to the MAXIMUM LIMIT for Excel of 1,048,576 rows by 16,384 columns

You might switch to DBD::SQLite, see Loading 283600 records (WordNet), Re: Is there a way(maybe tool?) to know the amount of memory an array takes?, dynamic bulk insert in sqlite


Comment on Re: Out of memory and While replacements with excel XLSX application
Re^2: Out of memory and While replacements with excel XLSX application
by Anonymous Monk on Oct 08, 2012 at 09:29 UTC
      ValueTargetCols should loop over rows first then cols, but it probably makes no difference in the results in this case

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2014-08-29 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (280 votes), past polls