On Friday 02 April 2010 7:17:38 pm Chris Hardin wrote: > CAn someone give me a quick education what FastInfoSet is?
FI is kind of a binary XML with a bunch of optimizations to make it very easy to parse and generally pretty small. Things like open and close element things are replaced with a single byte token, most stings are put into a string table so repeated strings are only encoded once, byte[] data is not base64 encoded, etc.... Generally, it's more expensive to write, but it's a lot more efficient to parse and much smaller on the wire. There is a little information at the FI libraries website: https://fi.dev.java.net/ > Also, how can I > ensure I am using Woodstox. I have the woodstox.jar in my lib dir. That SHOULD be enough. Dan > On Wed, Mar 31, 2010 at 10:05 PM, Daniel Kulp <[email protected]> wrote: > > On Wednesday 31 March 2010 4:17:07 pm Mayank Mishra wrote: > > > Dan, > > > > > > Can we shorten the namespace prefix in our engine, specially in cases > > > for WS-* messages? > > > > In the JAXB stuff, yea. There is some config that can specify prefixes > > to use > > and such. > > > > For WS-Security stuff, possibly not. I think WSS4J has a lot of that > > burned > > in. > > > > Dan > > > > > With Regards, > > > Mayank > > > > > > Daniel Kulp wrote: > > > > On Wednesday 31 March 2010 9:34:27 am Chris Hardin wrote: > > > >> Is there anything I can do to help increase performance? For > > > >> example, are there some strategies for cutting back on the size of > > > >> the SOap message generated? Compression? anything would be helpful. > > > >> I want to squeeze a few micros off my calls. > > > >> > > > >> thanks in advance > > > > > > > > Couple suggestions: > > > > > > > > 1) As mentioned, use minOccurs=0 instead of nillable=true. For > > > > messages > > > > > > with a lot of "null" values, they are MUCH smaller. > > > > > > > > 2) Make sure you use the woodstox parser and not the JDK built in > > > > parser > > > > > > (for Java6). Woodstox is a LOT faster. > > > > > > > > 3) If you can, use Fastinfoset. For larger messages, FI can be a > > > > huge help as it makes it much smaller on the wire and much easier to > > > > parse. (although more expensive to write) > > > > > > > > 4) If you cannot use FI, but are on a slower connection (aka: not > > > > localhost or gigabit), then enable gzip. > > > > > > > > If you have some large base64 blobs in the message, enabling MTOM > > > > would also be important (unless using FI). Not sure if that's the > > > > case though. > > > > -- > > Daniel Kulp > > [email protected] > > http://dankulp.com/blog -- Daniel Kulp [email protected] http://dankulp.com/blog
