Skip to content

mm/mm_heap: Optimizing heap performance, changing the mm_size2ndx and… - #14144

Merged
GUIDINGLI merged 1 commit into
apache:masterfrom
xianglyc:mem
Oct 15, 2024
Merged

GUIDINGLI merged 1 commit into
apache:masterfrom
xianglyc:mem

Conversation

@xianglyc

Copy link
Copy Markdown
Contributor

… mm-addfreechunk functions to inline functions can improve by about 7%

Change-Id: I9a069b93efa8aac166c363f3c3974ea42b36263c

Note: Please adhere to Contributing Guidelines.

Summary

Update this section with information on why change is necessary,
what it exactly does and how, if new feature shows up, provide
references (dependencies, similar problems and solutions), etc.

Optimizing heap performance

Impact

Update this section, where applicable, on how change affects users,
build process, hardware, documentation, security, compatibility, etc.

no impact

Testing

Update this section with details on how did you verify the change,
what Host was used for build (OS, CPU, compiler, ..), what Target was
used for verification (arch, board:config, ..), etc. Providing build
and runtime logs from before and after change is highly appreciated.

ostest

@github-actions github-actions Bot added Area: Memory Management Memory Management issues Size: S The size of the change in this PR is small labels Oct 12, 2024
@nuttxpr

nuttxpr commented Oct 12, 2024

Copy link
Copy Markdown

[Experimental Bot, please feedback here]

This PR does not meet the NuttX requirements. Here's why:

Missing Information

  • Insufficient Summary: The summary is too brief. It needs to explain:

    • Why is this change necessary? What specific performance problem does this solve? Provide benchmarks or metrics if possible.
    • What functional part of the code is changed? Be specific - mention the mm_addfreechunk functions and how they are being inlined.
    • How does the change work? Provide a technical explanation of how inlining these functions leads to a 7% improvement.
  • Incomplete Impact Assessment:

    • While the impact might be minimal, you should still address each point (user, build, hardware, etc.) with a brief "NO" if it doesn't apply.
    • The claim of "no impact" might not be entirely true. Inlining can sometimes increase code size, which could be relevant for certain embedded systems.
  • Inadequate Testing:

    • Insufficient Detail: "ostest" is not descriptive enough. Specify the following:
      • Host OS, CPU architecture, compiler version
      • Target architecture, board, and configuration
    • Missing Logs: You must provide build and runtime logs from both before and after the change. This is crucial for reviewers to understand the impact of your changes.

Recommendations

  1. Expand the Summary: Provide a detailed explanation of the problem, solution, and technical implementation.
  2. Thoroughly Address Impact: Even if there's no impact in most areas, explicitly state it for each category. Justify any potential impact.
  3. Provide Detailed Testing Information: Clearly describe your testing environment and include the required build and runtime logs.

Remember: A good PR is thorough, well-documented, and easy for reviewers to understand. Addressing these points will significantly improve your PR and increase its chances of being accepted.

@xianglyc
xianglyc force-pushed the mem branch 5 times, most recently from 68a8829 to f4e1b9f Compare October 13, 2024 07:38
@xianglyc
xianglyc force-pushed the mem branch 3 times, most recently from ad1287c to ac87490 Compare October 15, 2024 10:12
… mm-addfreechunk functions to inline functions can improve by about 7%

Signed-off-by: liwenxiang1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Memory Management Memory Management issues Size: S The size of the change in this PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants