Is it safe to generally assume that toString() has a low cost?
<p>Do you generally assume that toString() on any given object has a low cost (i.e. for logging)?  I do.  Is that assumption valid?  If it has a high cost should that normally be changed?  What are valid reasons to make a toString() method with a high cost?  The only time that I get concerned about toString costs is when I know that it is on some sort of collection with many members.
From: <a href="http://jamesjava.blogspot.com/2007/08/tostring-cost.html" rel="nofollow">http://jamesjava.blogspot.com/2007/08/tostring-cost.html</a></p>

<p>Update: Another way to put it is: Do you usually look into the cost of calling toString on any given class before calling it?</p>
