[stringtemplate-interest] ST in multi-threaded environment

David Moshal dmoshal at gmail.com
Fri Jul 7 07:48:56 PDT 2006


agreed, besides, thread-safety comes with a performance penalty.
BTW - Ter are you using StringBuffers or StringBuilders internally?

Dave


On 7/7/06, Terence Parr <parrt at cs.usfca.edu> wrote:
>
>
> On Jul 7, 2006, at 1:13 AM, Oliver Flege wrote:
>
> > Hi,
> >
> > when I first considered ST as a replacement for Velocity, I took it
> > for granted
> > that ST would be thread-safe. Finding out that it is not, I'd like
> > to ask
> > those of you who render Web-Pages with ST:
> >
> > How do you use ST in a multi-threaded environment (i.e., a web-
> > server)?
> > Do you just ignore thread-safety and hope for the best?
> > Do you rely on external synchronization?
> > Or...?
>
> Hi.  I used it for jGuru w/o issue.  I only had one thread generating
> each page, which is the normal case.  Remember multiple threads are
> never a problem if they work on different object instances. :)
>
> Terence
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20060707/79ef1131/attachment.html


More information about the stringtemplate-interest mailing list