More compact XML parsing?

Any java developer who has touched standard java DOM parser, knows that this default XML parser coming with JDK is extreme memory hog. And this boils down into bad overall performance (yes, memory allocation is still not free in java). On that basis following API sounds interesting: VTD-XML: The Future of XML Processing. Interesting point…

Read more

Custom RMI?

RMI has lot of overhead, but even worse part is how it operates as ”black box”. Thus various mechanisms are hidden deeply inside framework, there ain’t any finetuned control over how, for example, sockets are pooled and such. So is there alternatives? For simplicity lets ignore all alternatives, which are not supporting standard Java Serialization….

Read more

NIO + SSL + ServerSocket == wtf?!?

Okey, This (SSLServerSocketChannel) actually looks promising starting point… Appears to be part of larger API/framework called Tammi. However, I’m not so sure that all points mentioned on this FAQ are really covered. As summary: Making NIO to work with SSL (in server side sockets) is big-pain-in-the-ass. Some references: SSLEngine Using SSL with Non-Blocking IO Tricks…

Read more

Opera Fullscreen mode

Shortly said, opera is interpreting ”full screen” mode to be media type ’projection’, which causes that plenty of badly made web sites render badly when turning on full screen rendering in Opera. Sadly, it’s impossible to ask every web site to patch their site, it’s time to turn into local fix: 1) Turn on user…

Read more

NIO as cache buffer

Interesting idea: If there is need to (due to performance) to cache large number of objects in memory, what if, instead of using java heap to keep objects, elements would be stored in NIO native byte buffer. In theory that should (a) reduce java heap usage, (b) allow better usage of process memory space (i.e….

Read more

Synchronization and Serialization

One thing to be noted from RMI serialization, like any serialization in java is that serialization of the object doesn’t automagically ensure transactional consistency. In other words, if there is some object, which is modified by the background worker thread, and this same object instance is passed via RMI call to client, then it’s possible…

Read more

Java Strangeness

Interesting knowledge about JIT: Is Your JIT Telling You Lies? Especially interesting is how micro benchmarks lie, which means that trying to trick JIT compiler to do compilation in such small benchmark, can actually give rather misleading results.

Read more

Thanks for the memory

Thanks for the memory Some interesting points: 1: … When a JVM’s Java heap is swapped out, the garbage collector’s performance becomes extremely poor, to the extent that the application can appear to hang. If multiple Java runtimes are in use on a single machine at the same time, the physical memory must be sufficient…

Read more

Are you kidding me? JDK 6 in OSX

Finally, it’s starting to become slowly reality. Namely JDK6 is appearently default JRE in newest OSX version, which is just being published. Which means that we need to wait only 1,5 years until it is safe to base into using it (considering the fact that it takes some times to upgrade all the macs, and…

Read more