Re: Why Mobile Apps Are Slow
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Why Mobile Apps Are Slow
 
- From: Coda Highland <chighland@...>
 
- Date: 2013年7月29日 17:51:31 -0700
 
On Mon, Jul 29, 2013 at 5:18 PM, William Ahern
<william@25thandclement.com> wrote:
> On Sun, Jul 28, 2013 at 02:16:57PM -0400, Mark Hamburg wrote:
>> A strict manual management strategy should be able to be absolutely
>> precise right up until the program crashes because you get into a
>> situation that the program can't handle. Or if it doesn't crash, there is
>> a lot more copying of data structures ??? think about C++ vectors getting
>> copied around just like they were integer values ??? which in its own way
>> ups memory usage even if it remains precise.
If your C++ vectors are getting copied around like that, your STL
implementation sucks. Good implementations provide copy-on-write
semantics or (as of C++11) move semantics.
/s/ Adam