From: Anthony E. <me...@an...> - 2004-11-27 21:29:39
|
I've got a deadline of December 1st for my job but once that's done I'll test out the code and put it in the CVS. Sincerely, Anthony Eden Barrie Selack wrote: > Anthony, > > Thanks for the response. My main problem was that I decided to use Groovy > as a scripting language. Although BeanShell supports it, it was painfully > slow (over 1.2 seconds per field on the page) I thought at first it may > be a caching problem, but it was just the instantiation of BeanShell that > was the issue. So I wrote a GroovyValidator that compiles and caches the > class for reuse. It also allows you to specify an update-interval for > checking to see if the script has changed. The time has dropped from 1.2 > seconds to 10ms or less per field. Big difference. > > I'm attaching it for consideration of inclusion into FormProc. It's set > up just like a regular script in formproc.xml except for the uodate-interval. <snip> |