hzzc1987 / jnaerator

Automatically exported from code.google.com/p/jnaerator
0 stars 0 forks source link

Lazy-loading of CLASS variable in JNAerated Objective-C classes #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
As CLASS is only used by the class itself, we can replace all of its uses 
by calls to getCLASS(), for instance, that will create the CLASS instance 
the first time it is called.
This might speed up loading of large libraries, where hundreds of mutually-
referencing classes may be defined.

Original issue reported on code.google.com by olivier.chafik@gmail.com on 4 Jun 2009 at 9:02

GoogleCodeExporter commented 8 years ago
made both the class field and the getter private + forwarding all static calls 
from the instance class (now 
abstract).

Original comment by olivier.chafik@gmail.com on 12 Jun 2009 at 12:34