[freenet-dev] using reflection in fred

2003-10-13 Thread Zlatin Balevsky
The state chain code uses the reflection api heavily.  Official 
tutorials from Sun recommend reflection to be used only as a last 
resort, i.e. if the problem cannot be solved any other way.  RTTI in 
win32 adds tons of overhead.  insert other examples here

Is anyone out there 100% positive that reflection in java is cheap, 
lightweight, efficient?  If not I suggest we put getting rid of it on 
the TODO list

___
Devl mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl


Re: [freenet-dev] using reflection in fred

2003-10-13 Thread Toad
On Mon, Oct 13, 2003 at 07:55:35PM -0400, Zlatin Balevsky wrote:
 The state chain code uses the reflection api heavily.  Official 
 tutorials from Sun recommend reflection to be used only as a last 
 resort, i.e. if the problem cannot be solved any other way.  RTTI in 
 win32 adds tons of overhead.  insert other examples here

Are you sure you mean RTTI or full reflection here?

We use instanceof heavily - but it seems very unlikely that it uses any
more resources than a virtual call.
 
 Is anyone out there 100% positive that reflection in java is cheap, 
 lightweight, efficient?  If not I suggest we put getting rid of it on 
 the TODO list

-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.


signature.asc
Description: Digital signature
___
Devl mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl