>>>>> "Roman" == Roman Kennke <[EMAIL PROTECTED]> writes:

Roman> I speeded up the Cairo graphics impl significantly by changing
Roman> the way the native pointers are managed between Java and JNI
Roman> code. Until now, we used to lookup the class+fields of the
Roman> native pointers and fetched the value from the passed in
Roman> jobject. I changed this so that the pointer is passed to the
Roman> JNI code directly as long. This avoids the overly costly
Roman> lookups. The speedup is impressive, where the FillRect demo
Roman> needed ~250ms for one frame, it now dropped to ~130ms.

I think this is an interesting discovery.
Maybe we ought to mention it in the hacking guide?

Tom

Reply via email to