[Opensymphony-oscache] Performance of throwing NeedsRefreshException for missing keys
kutzi <[email protected]> Tue, 14 Jun 2005 11:35:42 CDT
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <24591358.1118766983100.JavaMail.os-j2ee@opensymphony01.contegix.com> |
Hi, I would like to ask if someone has already measured how expensive the NeedsRefreshExceptions are. Throwing an exception is AFAIK pretty expensive (as the StackTrace has to be filled in), so I wonder if it is a good idea to throw an exception for every new and stale cache entry. E.g. if your application has a very low refresh time, this could become a bottleneck, couldn't it? --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=3278&messageID=8537#8537