When wondering strange performance issues in socket IO, I peeked into native code in input stream, and noticed that logic is following: 1) If buffer is smaller (or equal) to 8KB then use stack 2) If not then malloc() Since memory allocation is not ever free, it sounds possible that such memory allocation can cause…
Read moreString Magic
Trie Update: 20.12.2009 1. Characters vs. Bytes 2. On Character Strings 3. Yooster (from: Text Encoding) Update: 21.12.2009 Busting java.lang.String.intern() Myths How Hotspot Decides to Clear SoftReferences Presenting the Permanent Generation Update: 12.1.2010 Memory usage of Java Strings and string-related objects
Read moreTO interrupt, or to NOT interrupt, that’s the question
In other words: How InterruptedException should be dealt with in Java? Some answers: Java theory and practice: Dealing with InterruptedException Exception-Handling Antipatterns Dealing with InterruptedException
Read more