Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #21569

Re: StringBuilder for byte[]

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: StringBuilder for byte[]
Date 2013-01-18 23:21 -0800
Organization Canadian Mind Products
Message-ID <o1ikf8hd1n2cu88e05etv433ta7dc3v72s@4ax.com> (permalink)
References <ti2if89pi9o6fcd32b739prbocff6i9plp@4ax.com> <alsp4iF91cjU1@mid.dfncis.de> <7ff63461-89b5-4196-8902-ead245eb6945@googlegroups.com> <50f9de01$0$282$14726298@news.sunsite.dk> <f9276cb7-52df-4fcf-86a7-442d0a9a21d2@googlegroups.com>

Show all headers | View raw


On Fri, 18 Jan 2013 17:07:16 -0800 (PST), Lew <lewbloch@gmail.com>
wrote, quoted or indirectly quoted someone who said :

>
>He said that the task is "to write a StringBuilder or FastCat".

What I intended was just something to concatenate byte[] into longer
byte[], no encodings involved, not a StringBuilder than squirted out
encoded bytes.  It is a subset of what ByteArrayOutputStream does.

A FastCat is like a StringBuilder but where you estimate the number
fragments to be joined, not the total length of the result. It is more
RAM efficient since it allocates the precise amount of space needed
for the concatenated String.

see http://mindprod.com/jgloss/stringbuilder.html
where I discuss the merits of StringBuilder vs FastCat vs StringBuffer
-- 
Roedy Green Canadian Mind Products http://mindprod.com
The first 90% of the code accounts for the first 90% of the development time.
The remaining 10% of the code accounts for the other 90% of the development 
time. 
~ Tom Cargill  Ninety-ninety Law 

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

StringBuilder for byte[] Roedy Green <see_website@mindprod.com.invalid> - 2013-01-18 00:40 -0800
  Re: StringBuilder for byte[] Sven Köhler <remove-sven.koehler@gmail.com> - 2013-01-18 12:15 +0100
    Re: StringBuilder for byte[] Lew <lewbloch@gmail.com> - 2013-01-18 08:54 -0800
      Re: StringBuilder for byte[] Sven Köhler <remove-sven.koehler@gmail.com> - 2013-01-18 18:08 +0100
      Re: StringBuilder for byte[] Arne Vajhøj <arne@vajhoej.dk> - 2013-01-18 18:42 -0500
        Re: StringBuilder for byte[] Lew <lewbloch@gmail.com> - 2013-01-18 17:07 -0800
          Re: StringBuilder for byte[] Arne Vajhøj <arne@vajhoej.dk> - 2013-01-18 20:27 -0500
            Re: StringBuilder for byte[] Arne Vajhøj <arne@vajhoej.dk> - 2013-01-18 20:28 -0500
          Re: StringBuilder for byte[] Roedy Green <see_website@mindprod.com.invalid> - 2013-01-18 23:21 -0800
            Re: StringBuilder for byte[] Lew <lewbloch@gmail.com> - 2013-01-19 00:42 -0800
              Re: StringBuilder for byte[] Roedy Green <see_website@mindprod.com.invalid> - 2013-01-20 00:48 -0800
  Re: StringBuilder for byte[] Arne Vajhøj <arne@vajhoej.dk> - 2013-01-18 18:44 -0500

csiph-web