[EMAIL PROTECTED] wrote:
>
> >
> >
> > I'm starting to delve into Cocoon, Jetspeed, and Turbine for some
> > servlet projects. They seem to be very well-engineered efforts that
> > do a great job of adding the right layers of abstraction. But one
> > question crossed my mind: What's the most _efficient_ way to put
> > together the content and get it out the door? Not the most object
> > oriented way, or the most elegant. I just wonder if anyone's tested
> > the speed of appending information to Strings, StringBuffers and what
> > not. Did anyone think about this?
> >
> > It's not clear to me that this knowledge is important because I often
> > find that better design pays off more in the long run. Faster
> > machines cover up all of those slow parts. :-)
> >
> > But I guess I'm just being academic.
> >
> > -Peter
>
> Of course we thought about it. Duh.
>
> You are being academic...when it comes to doing large complex web
> applications I willingly give up speed for better design. I want someone
> to come along 6 months from now and be able to understand my code. Also,
> since these projects are OS, I want to attract developers to well designed
> and implemented code that makes their lives easier.
>
> Yes, speed is a concern, but the way that we are doing things really
> doesn't slow stuff down that much...especially given everything that it
> benefits...
<snip>
Yeah. But as long as it is only a 10 -> 15% performance problem. After
that is pays to change the design (IE the singleton design.. not too OO
but designed well).
As per speed. JDK 1.1 is missing some things from StringBuffer (IE
replace). I created a StringUtil that is in Jetspeed that adds this
support. It will scan a whole string and replace as it is needed. When
you do things like look for http URLS within an doc and make them all
<a> urls it is a big performance improvement.
Kevin.
--
Kevin A Burton ([EMAIL PROTECTED])
http://relativity.yi.org
Message to SUN: "Please Open Source Java!"
"For evil to win is for good men to do nothing."
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]