[prev in list] [next in list] [prev in thread] [next in thread]
List: openorb-devel
Subject: RE: [openorb-devel] native method implementation comments
From: "Rumpf Michael" <Michael.Rumpf () encorus ! com>
Date: 2004-01-26 16:20:46
Message-ID: 5DA463E0A2D1BD479103F137A347CC4014C014 () stex01 ! encorus ! corp
[Download RAW message or body]
> A couple quick comments on the native method implementations
> in rmiiiop.c:
>
> The ReleaseStringUTFChars jni method calls are not necessary
> and will in
> fact slow down execution.
OK, I will try to remove those calls.
> My experience has been that it is faster to pass the Field
> objects and
> use FromReflected field than is is to pass String field names and use
> GetFieldId.
OK, could you please provide some code. I just looked at how it was
implemented in Sun's JDK and I didn't spend too much time on creating
my own implementation.
> If passing Field objects, there can be a map of class to singleton
> serialization handlers which would cache the Fields of the Class.
> Obtaining a Field is one of the highest cost items of reflection.
Not sure what you mean here...
Michael
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
openorb-devel mailing list
openorb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openorb-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic