Would like to summarize optimization (refer to performance optimization and space optimization). Especially iPhone.
1.
performance and design as the test can not be forced to call it a day when the software is to improve the quality, the final stage of considering optimization,Moncler UK, too late. performance is not just a simple speed problem, but the user experience part - which from the design stage into the implementation.
2. data structure choice
obj-c of the NSArray / NSMutableArray good use. but not necessarily appropriate everywhere - the pointer can only put stuff inside,ugg winter boots, you can not plug struct. CGPoint order to put inside it,Ugg online store, an impulse is easy [NSValue valueWithCGPoint:] an object package, and this object is get out of the heap will be slow.
fact, obj-c and c + + can be mixed directly with the vector
3. concurrency
iPhone's Core Animation is effective, animated graphics chips do all threw out. Thus, during the animation will be able to make use of idle cpu, do in the beginning of a thread.
which in Apple's Safari and Email in your are uses: Safari switch the page,uug, the first contraction after the release of the movie, there should be a thread behind the load / render the next page; and send a picture,Moncler Jassen, cut from the photo to zoom animation Email also has the background in preparation for the new email.
4. latency
full use of cpu dry the user can see live, will have to work but is not visible can be delayed. concurrent with the above method is similar to one submitted to the completion point lag work.
5.
sharing a work-sharing is divided into several small steps to complete. This will not affect the main loop speed of response.
Imagine ,New Ugg, draw a fingertip to draw complex lines of work,moncler sale, if you can lift the finger after,ugg boots classic tall, and then press work before this time,ugg boots outlet, users do not feel any delay - the pointing,moncler jacke, the background to hold.
not want to achieve good, but the analogy about Lua coroutine in the resume / yield mechanism, it is clear - each small step drawing thread needs to give up, so the main thread to resume it after the execution.
6.
QuickSilver to reconsider the About column saying the words of Lao Tzu \code. confined to the existing algorithms to improve the speed, it is better to jump out to rethink the original question, another path may have emerged.
相关的主题文章:
- Many people see the Land Rover to climb the mounta
- 【】 Wen Jiabao to visit four European countries
- Men get bitten byugg boots womenMoncler Jackets UK
- Triad-related cases the Supmoncler jackeUGG outlet
- moncler outerwearUGG saleMoncler OutletAuthentic uggUGGS Bestellen
- Yang Yun Dai Ouni CEO talks to sell diamonds online Price is the weapon
- Integration of housing security and public services speecheap uggsmoncler online
没有评论:
发表评论