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