As Android introduces some of the features of Java 8, it is important to remember that every standard library API and language feature comes with some associated overhead. Although devices are getting faster and have more memory, there is still a strong correlation between code size and performance optimization. This 360AnDev talk will explore the hidden overhead of some Java features. We'll look at optimizations that are relevant to both library developers and application developers, and tools that can measure their impact. Introduction (0:00) In this talk, I will discuss something I have been exploring for the past six months, and I want to disclose some information. As you learn more, you may not get something clear that can be applied to your application. But, by the end, I'll have some specific tips on how to avoid the overhead I've talked about today. I will also show you many of the command line tools I use, links to these resources are at the end of the article. Dex File (1:14) We'll start with a multiple choice question. How many methods does the following code have? No, one or two?
1. Sample code sharing of hidden overhead in Java
Introduction: As Android introduces some of the features of Java 8, it is important to remember that every standard library API and language feature comes with some associated overhead. Although devices are getting faster and have more memory, there is still a strong correlation between code size and performance optimization. This 360AnDev talk will explore the hidden overhead of some Java features. We'll look at optimizations that are relevant to both library developers and application developers, and tools that can measure their impact. Introduction (0:00) In this talk, I will discuss something that I have been exploring for the past six months, and I want to disclose some...
【Related Q&A Recommendations 】:
The above is the detailed content of Summary of points to note about hiding expenses. For more information, please follow other related articles on the PHP Chinese website!