Grails Service Calls From TagLib Overhead -


i have simple taglib , service:

class testtaglib {     fooservice fooservice      static namespace = "bar"      def test = {         out << "text"     } }  class fooservice {     //this empty method absolutely nothing     void foo() { } } 

if repeat taglib 20 times on page, executes instantly. if call service:

...  fooservice.foo() out << "test"  ... 

suddenly 20 taglibs cause page take 2 seconds load. doesn't seem right overhead of service call high...or it? how go debugging this?

service methods default transactional. so, every call of fooservice.foo() getting overhead of complete database transaction creation , commit.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -