[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi] Not urgent: a plausible micro-optimization
From: |
Greg Chicares |
Subject: |
[lmi] Not urgent: a plausible micro-optimization |
Date: |
Fri, 16 Feb 2018 00:49:53 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
We have a
wxDocMDIParentFrame* frame_;
in
Skeleton::UpdateViews()
where we do this:
for(auto const& i : frame_->GetChildren())
{Do Something Cool That Takes A Bit Of Time}
Does wx provide something like GetChildren() that's
designed to put the currently-focused child (if any)
first in the list? I think that could improve an
application's perceived responsiveness, by updating
the "current" child first in a loop like this one.
Or is this trivial to do in lmi, e.g., by sorting
the result of GetChildren() to bring any focused
element to the front?
- [lmi] Not urgent: a plausible micro-optimization,
Greg Chicares <=
- Re: [lmi] Not urgent: a plausible micro-optimization, Vadim Zeitlin, 2018/02/17
- Re: [lmi] Not urgent: a plausible micro-optimization, Greg Chicares, 2018/02/21
- Re: [lmi] Not urgent: a plausible micro-optimization, Greg Chicares, 2018/02/21
- Re: [lmi] Not urgent: a plausible micro-optimization, Vadim Zeitlin, 2018/02/22
- Re: [lmi] Not urgent: a plausible micro-optimization, Greg Chicares, 2018/02/22
- Re: [lmi] Not urgent: a plausible micro-optimization, Greg Chicares, 2018/02/22
- Re: [lmi] Not urgent: a plausible micro-optimization, Vadim Zeitlin, 2018/02/22
- Re: [lmi] Not urgent: a plausible micro-optimization, Greg Chicares, 2018/02/23
- Re: [lmi] Not urgent: a plausible micro-optimization, Vadim Zeitlin, 2018/02/23