You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-user@jakarta.apache.org by Thomas Hawtin <th...@tackline.demon.co.uk> on 2003/10/04 03:02:35 UTC

Re: earliest JDK required, and performance

David Seidman wrote:
> 
> 2) What has been your performance experience with
> BCEL?  Is it appropriate in a dynamic environment? 
> The folks at ASM wrote a paper in November 2002, "ASM:
> A Code Manipulation Tool to Implement Adaptable
> Systems", which claims that BCEL had a 700% overhead
> in their benchmark, compared to 60% for ASM.

I have not done any benchmarking, however:

BCEL does create a lot of InstructionHandles - InstructionList.append 
returns one for each instruction added. BCEL attempts handle pooling, 
but that is probably counter-productive on modern JVMs.

OTOH you probably aren't going to be generating classes continuously. 
There is also the overhead of loading and compiling the class to take 
into account. So it's not something to particularly worry about. I would 
tend to do what ever is easiest to code, and then test whether the 
performance is adequate.

Tom Hawtin


---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org