Thu, 2007-12-20 11:05 — Arancaytar
A word of warning: If you are working with Collections in Java that are over 5000 records, do not implement a toString that aggregates them all as text. String concatenation is obscenely slow in that context, which means you will wait several minutes for data sets that are larger. Presumably this is dependent on String length as well as record count, so it also matters how big the text of each record is.
Workaround? Use void print() instead of String toString(). Admittedly, it's not as flexible, but it's orders of magnitude faster.
And that's what I have learned for today.
Comments
Have you considered using
I started using it a day after I wrote this