Bugs item #1409210, was opened at 2006-01-18 19:04 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1409210&group_id=119783
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: core Group: 1.2 Status: Open Resolution: None Priority: 5 Submitted By: ejboy (ejboy) Assigned to: Nobody/Anonymous (nobody) Summary: wicket.util.lang.Objects.sizeof() should be more effective Initial Comment: To avoid unnecessary memory usage ByteArrayOutputStream must be replaced with a subclass of OutputStream like this: class CountingOutputStream extends OutputStream { private long size; public void write(int b) throws IOException { size++; } public void write(byte b[], int off, int len) throws IOException { size += len; } public long getSize() { return size; } } Similar optimization may be applied to Objects.clone() method, by replacing ByteArrayInputStream and ByteArrayOutputStream with a more effective implementations. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1409210&group_id=119783 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop