in reply to Reducing Memory Usage

Whats the average length of string, and how many are there in your 125 MB file?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re^2: Reducing Memory Usage
by PerlingTheUK (Hermit) on Jul 16, 2004 at 08:01 UTC
    All lines are 80 chars, adding up to about 1,6 to 1.8 million lines.

      And how many (and what type) of objects does that translate to?


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail
      "Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon
        One object per line, some of which (average of 20 to 50 depending on the data) are subobjects of other objects. So I have like 50000 busses and about 33 objects with timetable information each.