Felix>I looked at that, too. There are two options, one is the String (as implemented) the other is a RDocument, which didn't look like it would support it easily. But you might find a find, so look at it.
Here's my benchmark for setText vs replaceRange+append https://gist.github.com/vlsi/63a1d4732f027ce70229af830ce20648 It looks like it makes sense to use replaceRange+append. Felix>Formats are not threadsafe, so I put it inside the lock. Should we use ThreadLocals for formats? It seems to be a trivial change, yet it would increase scalability. Vladimir
