Sunday, July 17, 2011

JSNI badly slow in debug mode

Hi, There,
I have a application which uses GWT's canvas to set the Image
data color. For a picture, say, 500*500 pixels, the consumed
overall invocation time in debug mode is totally unaccepted due to
the doInvoke method in com.google.gwt.dev.shell.ModuleSpaceOOPHM
class.

The code snippet
.....

TreeLogger branch = host.getLogger().branch(TreeLogger.SPAM,
"Invoke native method " + name, null);
Event javaToJsCallEvent =
SpeedTracerLogger.start(DevModeEventType.JAVA_TO_JS_CALL);
if (SpeedTracerLogger.jsniCallLoggingEnabled()) {
javaToJsCallEvent.addData("name", name);
}

CompilingClassLoader isolatedClassLoader =
getIsolatedClassLoader();
JsValueOOPHM jsthis = new JsValueOOPHM();
Class<?> jthisType = (jthis == null) ? Object.class :
jthis.getClass();
JsValueGlue.set(jsthis, isolatedClassLoader, jthisType, jthis);
branch.log(TreeLogger.SPAM, " this=" + jsthis);

....

Can I bypass the log in debug mode ? Or any idea I can speed my
debugging?


Thanks in advance.
OrNot


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate