Delay Using Collections

  • Thread starter Thread starter Ian Mooney
  • Start date Start date
I

Ian Mooney

My application uses a collection class to hold around 5000 objects. It
takes around 2 minutes to load these into the collection which seems to me
to be far too long. The same code process with the collection.ADD method
REMed out takes about 12 seconds. I've also compiled with the .ADD not
inserting an INDEX value think it might be the cause of the delay but there
is almost no noticeable difference. I guess it's all due to memory allocs -
but is this normal?
 
I'm loading from a CSV file. This doesn't seem to be the issue as when I
modified the code to do everything except the COLLECTION.ADD() it took only
12 seconds to run. This included running all the file read / CSV split etc.

Regards
Ian


I modified the program to do this but NOT do the COLLECTION.ADD() and it ran
at 12 seconds
 
Back
Top