Abstract
How to improve iOS sliding performance has always been the focus of iOS application optimization. This paper analyzes the principle of AutoLayout and Frame view layout, the opportunity of network loading, CPU and GPU performance consumption during sliding process. First, we provide the appropriate solution to avoid using AutoLayout, and adjust the time of network loading by preloading to reduce the waiting time dynamically. Pre-cache and asynchronous rendering to reduce the main thread CPU consumption is implemented to reduce the main thread CPU consumption, and at the same time, GPU consumption is reduced by asynchronous rendering. Finally, verify the feasibility and effectiveness of the optimization scheme by experiments. It is verified that the percentage of the main thread CPU consumption decreases by 17.2% and FPS increases from 37 Hz to 60 Hz.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Badros, G.J., Borning, A., Stuckey, P.J.: The Cassowary linear arithmetic constraint solving algorithm. ACM Trans. Comput.-Hum. Interact. 8(4), 267–306 (2001)
Novac, O.C., Novac, M., Gordan, C., Berczes, T.: Comparative study of Google Android, Apple iOS and Microsoft Windows phone mobile operating systems. In: 2017 14th International Conference on Engineering of Modern Electric Systems (EMES). Oradea, Romania, pp. 154–159 (2017)
Wetchakorn, T., Prompoon, N.: Method for mobile user interface design patterns creation for iOS platform. In: 2015 12th International Joint Conference on Computer Science and Software Engineering (JCSSE), Songkhla, Thailand, pp. 150–155 (2015)
Bournoutian, G., Orailoglu, A.: On-device Objective-C application optimization framework for high performance mobile processors. In: Design, Automation & Test in Europe Conference & Exhibition (DATE), Dresden, Germany, pp. 1–6 (2014)
Ferreira, P.: Reclaiming storage in an object oriented platform supporting extended C++ and Objective-C applications. In: Proceedings 1991 International Workshop on Object Orientation in Operating Systems, Palo Alto, CA, USA, pp. 100–102 (1991)
Gutierrez, A., Dreslinski, R.G., Wenisch, T.F.: Full-system analysis and characterization of interactive smartphone applications. In: 2011 IEEE International Symposium on Workload Characterization (IISWC), Austin, TX, USA, pp. 81–90 (2011)
Develop Apple. https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/AutolayoutPG/index.html
WikiPedia. https://en.wikipedia.org/wiki/FPS
Develop Apple. https://developer.apple.com/documentation/uikit/uitableview
Develop Apple. https://developer.apple.com/documentation/uikit/uicollectionview
Develop Apple. https://developer.apple.com/documentation/uikit/uilabel
Develop Apple. https://developer.apple.com/reference/quartzcore/calayer
Develop Apple. https://developer.apple.com/documentation/coretext
Develop Apple. https://developer.apple.com/documentation/coretext/ctframe
Develop Apple. https://developer.apple.com/documentation/coretext/ctline
Develop Apple. https://developer.apple.com/documentation/coretext/ctrun-61n
Xu, P., Yin, Q., Huang, Y., Song, Y.-Z., Ma, Z., Wang, L., Xiang, T., Kleijn, W.B., Guo, J.: Cross-modal subspace learning for fine-grained sketch-based image retrieval. Neurocomputing 278, 75–86 (2018)
Ma, Z., Xue, J.-H., Leijon, A., Tan, Z.-H., Yang, Z., Guo, J.: Decorrelation of neutral vector variables: theory and applications. IEEE Trans. Neural Netw. Learn. Syst. 29(1), 129–143 (2018)
Liu, W., Cao, J., Yang, L., Xu, L., Qiu, X., Li, J.: AppBooster: boosting the performance of interactive mobile applications with computation offloading and parameter tuning. IEEE Trans. Parallel Distrib. Syst. 28(6), 1593–1606 (2017)
Ma, Z., Rana, P.K., Taghia, J., Flierl, M., Leijon, A.: Bayesian estimation of Dirichlet mixture model with variational inference. Pattern Recogn. 47(9), 3143–3157 (2014)
Acknowledgement
This work was supported in part by the (1) National Natural Science Foundation of China (No. 61671079, 61771068, 61471063) (2) Beijing Municipal Natural Science Foundation (No. 4182041).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 ICST Institute for Computer Sciences, Social Informatics and Telecommunications Engineering
About this paper
Cite this paper
Zhao, Q., Qi, Q., Zhang, L., Shen, Q. (2018). Optimizing Sliding Performance in iOS. In: Chong, P., Seet, BC., Chai, M., Rehman, S. (eds) Smart Grid and Innovative Frontiers in Telecommunications. SmartGIFT 2018. Lecture Notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering, vol 245. Springer, Cham. https://doi.org/10.1007/978-3-319-94965-9_12
Download citation
DOI: https://doi.org/10.1007/978-3-319-94965-9_12
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-94964-2
Online ISBN: 978-3-319-94965-9
eBook Packages: Computer ScienceComputer Science (R0)