Re: StringBuffer/StringBuilder efficiency



On Tue, 29 Sep 2009, Roedy Green wrote:

On Sun, 27 Sep 2009 17:54:04 +0100, Tom Anderson
<twic@xxxxxxxxxxxxxxx> wrote, quoted or indirectly quoted someone who
said :

Almost always, i suspect. Certainly a common case that looks worth optimising for.

In the ordinary case, the only methods of StringBuilder you use are
append and toString. Consider that server side code is mostly just
appending strings to put together the response.

Shhhh! I won't be able to charge half what i do if people knew that's all it was!

tom

--
Most people lose their talent at puberty. I lost mine in my early
twenties. I began to think of children not as immature adults, but of
adults as atrophied children. -- Keith Johnstone
.



Relevant Pages

  • Re: Append vs Make Table - Total Record Limits?
    ... This is a shot in the dark, but I seem to remember something in Access about ... This append runs much more slowly and we would need to modify the overall code to make use of this appended table. ... The user is connecting to the SQL2000 server via ODBC under the 'sa' account. ...
    (microsoft.public.sqlserver.programming)
  • Re: Making static class ToString() not possible, why?
    ... Yes, of course, those are OOP things, and a static class is basically ... invoked when you append "it" to a string, but with a static class there ... ToString(), into a static class. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Making static class ToString() not possible, why?
    ... I don't want to inherit anything. ... invoked when you append "it" to a string, but with a static class there ... ToString() to easily print out all of its data. ... how can object.ToString be invoke on a static class? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Tierd structure advice
    ... the network, ie Delete Old records, Update Existing and Append new. ... Streaming to a DataSet seems faster so I will keep the Access MDB at Server ... >> PC level with DataSets and XML files. ... > a less efficient file system. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: detect if appended js is actually js
    ... the returned data into a hidden div, then use toJSONString(), & if the ... I'm stuck using this particular server because there is ... it when one is specifying a callback to obtain JSON from a server? ... append content to the DOM before anything can be done with it. ...
    (comp.lang.javascript)

Loading