The following comment has been added to this issue:
Author: Bill Schneider
Created: Thu, 16 Dec 2004 4:07 PM
Body:
motivation is performance, to reduce the memory footprint of using displaytag
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/DISPL-156?page=comments#action_28093
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/DISPL-156
Here is an overview of the issue:
---------------------------------------------------------------------
Key: DISPL-156
Summary: StringBuffer.append vs. JspWriter.print
Type: Improvement
Status: Unassigned
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: DisplayTag
Components:
Tag Library
Assignee:
Reporter: Bill Schneider
Created: Thu, 16 Dec 2004 4:07 PM
Updated: Thu, 16 Dec 2004 4:07 PM
Description:
The tag library builds up HTML in a StringBuffer in memory, then flushes it all
out to the response at once with a single out.write(buffer).
Would it be reasonable instead to write directly to the underlying response's
JspWriter so that normal JSP buffering can take place?
for example, instead of
buffer.append(getHTMLData());
write(buffer);
you would have
writeHTMLData(writer);
writeHTMLData would return void instead of String, and all of the
buffer.append()'s would change to writer.write(). Subroutines like String
getTableFooter(), which are only called from getHTMLData, would similarly
change to void writeTableFooter(writer).
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel