Those resourceStreams of a PackageResource aren't holding the complete
size of youre stream?
It is just a wrapper around a UrlResourceStream where the real resource
is closed after streaming it.
So we arenot storing an image in mem. We are just streaming it.
What you keep in mem for youre DynamicImages (in there byte buffer) is
up to you
johan
Gili wrote:
Hi,
I'm doing memory profiling on my webapp and it looks to me like we
allocate a new ResourceStream per locale of the same packaged
resource. The problem is that if I have a larged image exposed through
a PackageResource and it is hit from 5 different locales, we store the
exact same image in memory 5 times.
Isn't there a way for us to resolve these requests to the same
image? They are the same file in the underlying file-system. Taking
this one step further, there should be a way for me to signal to
Wicket that even my DynamicImages are locale-independant. Again, at
500k-1MB per image, that's a lot of wasted memory (and I get hits from
many different locales on my website). Can anyone help me with this
optimization?
Thanks,
Gili
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-develop