in reply to Re: Display shortened paragraph
in thread Display shortened paragraph
While it is interesting to note that duff's solution is reasonably fast (compared to the other ones) even if it does a more complex task, and definitely a more appropriate one to the needs of the OP, let's please try not to go mad about doing Benchmarks for every single thing that is posted here. This may convey the impression that premature optimization does matter, while it doesn't. By any means. In particular in this case as soon as I have some code that works, I would rather "rate" it based on readability or perhaps adaptability but for heaven's sake: not on speed!
|Replies are listed 'Best First'.|
Re^3: Display shortened paragraph
by GrandFather (Saint) on Feb 01, 2006 at 18:19 UTC