Sunday, September 30, 2012

String interning - Wikipedia, the free encyclopedia

String interning - Wikipedia, the free encyclopedia:


String interning speeds up string comparisons, which are sometimes a performance bottleneck in applications (such as compilers and dynamic programming language runtimes) that rely heavily on hash tables with string keys. Without interning, checking that two different strings are equal involves examining every character of both strings. This is slow for several reasons: it is inherently O(n) in the length of the strings; it typically requires reads from several regions of memory, which take time; and the reads fills up the processor cache, meaning there is less cache available for other needs. With interned strings, a simple object identity test suffices after the original intern operation; this is typically implemented as a pointer equality test, normally just a single machine instruction with no memory reference at all.
String interning also reduces memory usage if there are many instances of the same string value; for instance, it is read from a network or from storage. Such strings may includemagic numbers or network protocol information. For example, XML parsers may intern names of tags and attributes to save memory.

Fixed Income Trading platform architecture

http://www.ksvali.com/wp-content/uploads/2009/08/fixed_income_trading_system_architecture.pdf


Fixed Income Trading Platform Architecture - Khader Vali Shaik