Darron, blush...

If you looked at my php implementation(my as2 doc generator) it had all that plus some hex stuff. I was using this as a test parsing and I never use dollar signs, slipped my mind.

Thanks for reminding me ;-)

And for that first idea, haha great!!! Man 4 eyes are better than 2!

Peace, Mike

On 3/18/06, Matt Chotin <[EMAIL PROTECTED]> wrote:

+= is much improved from when we needed StringBuilder earlier in the cycle.  The gains of StringBuilder were reduced to a very limited number of cases and it was decided that the amount of Player code required along with testing just didn't make it worthwhile.  We're still investigating to make sure that some of our stuff didn't degrade but it's likely that we'll fix the String class rather than re-introduce StringBuilder if there are problems.

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Darron J. Schall
Sent: Saturday, March 18, 2006 12:07 PM


To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-)

 

Gordon Smith wrote:

Forget StringBuilder... it's going away in B3. The player team decided

it didn't give enough performance gain in enough useful cases to justify
having both String and StringBuilder.


Doh, really?  I've actually been using it a decent amount.  It's especially handy in testing the SHA1 hash of a million letter a's to verify the hash algorithm is correct:

var millionAs:StringBuilder = new StringBuilder
( '' );

millionAs.ensureCapacity( 
1000000 );

for ( var i:
int = 0; i < 1000000
; i++ ) {

        millionAs.append( 
'a' );

}
assertSHA1( millionAs.
toString(), "34aa973cd4c4daa4f61eeb2bdbad27316534016f"
 );


I realize the above loop could be unrolled to make it perform even faster (by appending more 'a's in each append call, and reducing the number of iterations by 10x, 100x, etc).  But StringBuilder in this case was a lot faster than using a regular string.. though, I imagine this isn't really a typical use-case.

That said, however, it would be a shame to see StringBuilder go -- especially after having written a decent number of pages for it for an upcoming book.  Can I petition?  :-)

-d



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
What goes up, does come down.

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to