Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Performance replacement for String in Java [closed]

Anyone remembers the name of that opensource "project" that developed some nice replacement for String in java ?

I know there is is one, just cant find it in google and dont remember the name. (i am not talking about StringBuilder)

Thanks

like image 237
Roman Avatar asked Jan 20 '10 10:01

Roman


1 Answers

Are you looking for ropes?

A rope is a high performance replacement for Strings. The datastructure, described in detail in "Ropes: an Alternative to Strings", provides asymptotically better performance than both String and StringBuffer for common string modifications like prepend, append, delete, and insert. Like Strings, ropes are immutable and therefore well-suited for use in multi-threaded programming.

like image 120
Jerome Avatar answered Nov 14 '22 22:11

Jerome