Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Slow performance when using custom classloader in applet.  (Read 1017 times)
0 Members and 1 Guest are viewing this topic.
Offline hishadow

JGO n00b
*

Posts: 35



« on: 2008-12-14 00:31:03 »

I've been trying to implement a custom classloader with applets but I'm having some performance problems.

If I create the classloader with the ClassLoader.getSystemClass() as parent, using defineClass (with bytecode) is fast. Problem then is that the instances I create from classes defined cannot find any class defined in the classloader used with the applet class.

When I use the  classloader from the applet class as parent in my custom classloader, the performance of defineClass get very slow (like 3-4 defineClass pr second).

I'm currently using the first method and using reflections to get around the problem, but it's a bit hacky, so any suggestions would be appreciated.
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.077 seconds with 20 queries.