gnu.iou

Project

Download

API Docs

Discussion

License

The 1.0 release of the java package `gnu.iou' is a stable, production quality release of a fast, single threaded set of byte and character buffers: `bbuf', `chbuf' and `linebuf'.

The `chbuf' class, in particular, is a drop- in replacement for the slow (synchronized) `java.lang.StringBuffer' class. You might be surprised at the size of the benefit to performance gained by replacing "StringBuffer" with "chbuf" in code that is either single threaded (eg, on the stack) or already multi- thread safe.

The `bbuf' has input and output stream wrappers, `bbi' and `bbo', and an multi- thread safe pipe, `bbp'.

The Swing `shell' UI for command line I/O stream based interpreters is an application of these classes.