-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 03/28/2015 04:58 PM, Dan Covill wrote:
> If you re-read the report, they were not "creating a 1MB string in > memory", they were concatenating thousands of sub-strings until > they had 1 MB. It's the concatenation implementation that took all > the time, because each instance allocated new memory space, did the > concat, then released the old memory. They weren't just strings; they were creating millions of string *objects*, each of which had to be initialized and destroyed, usually via garbage collection. It was probably the dumbest way of creating a 1MB string you could devise. - -- - -- Ed Leafe -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: GPGTools - https://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCgAGBQJVGD7AAAoJEKMgtcocwZqL8+wP+wdWP1crs5NZtzLkuHAydPNk qvoWsw8po1RIIMLjMOgsWjxeAznZH5eWm0a9lDNVL9NC+DPUX8xHJk9btZ3W2ADk /Fyo0RDBPYFXY7OaAy6DW+sQhTSpDAXhmNcveG4jQqHKpkDN76b49QkZMeaQ/ZX7 WkbzK7VLrM3M3Hn8x/aiwyiATI2UCt3+3chRWEsczr4FS2opXWOq1qAPWnwRqzw2 JeoJOrPYV3iYWSl1WtfNWUqf53xcYXhriH2oZFR2ptrZMAfOKwoxhSntiLSuuGSH LbA7hDJFSu42USuMcFVBO3kkDzbML71DaVPFli4ZGqjW+rBBQPDEz/NY1ZF3Ki8R eDvx8I0/1gDluh0duiCH7nNMRQ8D/PaYrWTaSpRs0ruvAe9jxH35sp/OkFmdpHei e3Mm9lAcmSVwfvGJ6SFAHIVCX/G6r2UBlHxGBLizcld3n9vv7DQIjoS4dgzZmciu DdOsPfNwWKbFYY9QDSe9eBJv5R9rfVspeZFIfACn9NlPmrJe/20OH2lrZ1KoXOgF /TqdaVxca2H/oYmGGh40FMMoUgXbvDaoTbli3GZ/nL0hZbEY3TfiEvmcgGh81hcu N6I1hQiSTIAxThMK7rEgdpa2ni9DDE76oDmVTg+Jahh+RiUrgONyCZ7cwsgOmA/o dnaK5BAFYd/SpeNlUks+ =QaGR -----END PGP SIGNATURE----- _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/55183ec0.9090...@leafe.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.