ObjectTranslator
ObjectTranslator copied to clipboard
Skip the XML
I found the XML part of this slows it down and it is almost 3 times faster by skipping the XML like this: var fullyQualifiedName:String = getQualifiedClassName(clazz).replace( /::/, "." );
instead of: var typeInfo:XML = describeType( clazz ); var fullyQualifiedName:String = [email protected]().replace( /::/, "." );
Not sure whether this creates other issues, but works great for me.
Have been working on a class that creates class files for nested types using ObjectTranslator and was testing the speed using the classes and subclasses it generated, is anyone else still interested in this?