---
title: "Discussion on \"Android 优化的思考\" | Hashnode"
description: "Discussion on \"Android 优化的思考\". 虽然多层级的嵌套能带来性能问题，但是写起来的确很爽，而且结构上也比较清晰。在现在的 Android 手机上，View 的嵌套优化能带来多大的提升也是个问题，我个人认为这个优化在现在的手机上带来的提升的优化不大了。 除非你有很多过时的 Android 系统。当让你要写优化的部分的提升的性能有多少，拿出数据出来的时候，这点微墨的提升量，很难不让人怀疑是因为手机的 CPU 波动引起的。最实惠的优化方案还是 baseline profile 和 startup-profile 的方式。这个道理也适用于的..."
url: "https://hashnode.com/posts/android-1/6572868d8210ef9a0a53b480"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Android 优化的思考](https://serendipitymatthew.hashnode.dev/android-1?utm_source=hashnode&utm_medium=feed)

虽然多层级的嵌套能带来性能问题，但是写起来的确很爽，而且结构上也比较清晰。在现在的 Android 手机上，View 的嵌套优化能带来多大的提升也是个问题，我个人认为这个优化在现在的手机上带来的提升的优化不大了。 除非你有很多过时的 Android 系统。当让你要写优化的部分的提升的性能有多少，拿出数据出来的时候，这点微墨的提升量，很难不让人怀疑是因为手机的 CPU 波动引起的。最实惠的优化方案还是 baseline profile 和 startup-profile 的方式。这个道理也适用于的...

Dec 8, 2023 · 1 min read · serendipitymatthew.hashnode.dev  
Read the article

-   [#android](https://hashnode.com/tag/android)
-   [#android-app-development](https://hashnode.com/tag/android-app-development)
-   [#performance-optimization](https://hashnode.com/tag/performance-optimization)

## Written by

[Matthew](https://hashnode.com/@MatthewInchoate)

@MatthewInchoate · Tokyo, Japan

  
[View profile](https://hashnode.com/@MatthewInchoate)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
