[cp-patches] FYI: speedup Cairo graphics stuff
tromey at redhat.com
Sun Jun 11 17:10:53 UTC 2006
>>>>> "Roman" == Roman Kennke <roman at kennke.org> 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?
More information about the Classpath-patches