Hi Orjan, Not sure why this has cropped up now (was I using a BufferedOutputStream before at some point, and stopped? I'm too lazy to check...), but I've made the change in my working copy and binding is substantially faster. Thanks for pointing this out!
- Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Orjan Austvold wrote: > Hi, > > After upgrading to JiBX 1.1.3 we discovered that the binding process > took much longer time to complete than earlier releases. On previous > releases it took about 27 seconds on my laptop to do a binding on 531 > classes. On 1.1.3 it takes 109 seconds to complete. > > By wrapping the OutputStream on the call to bcel in a > BufferedOutputStream we're back on 27 seconds for the binding. > > Dennis; could you please change as shown in > org.jibx.binding.classes.ClassFile > > @@ -34,6 +34,7 @@ > import java.io.IOException; > import java.io.InputStream; > import java.io.OutputStream; > +import java.io.BufferedOutputStream; > import java.net.MalformedURLException; > import java.net.URL; > import java.net.URLClassLoader; > @@ -1930,7 +1931,7 @@ > > public void writeFile(OutputStream os) throws IOException { > codeComplete(); > - m_curClass.dump(os); > + m_curClass.dump(new BufferedOutputStream(os)); > os.close(); > } > > > Thanks! > > Ørjan > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > jibx-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jibx-users > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
