Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Opt memory tracker for FE (backport #53055) #53143

Merged
merged 1 commit into from
Nov 22, 2024

Commits on Nov 22, 2024

  1. [Enhancement] Opt memory tracker for FE (#53055)

    ## Why I'm doing:
    `SizeEstimator.estimate` will calculate the retained size of the object, that is the size of the param object and all the referenced objects. This will lead to repeated counting when the same object is referenced by many objects, and result in very high resource usage when the param object refers to network object or GlobalMetaStore.
    
    ## What I'm doing:
    Change to `ClassLayout` to only calculate the shadow size of the object.
    
    Signed-off-by: gengjun-git <[email protected]>
    (cherry picked from commit 4f60313)
    gengjun-git authored and mergify[bot] committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    febc227 View commit details
    Browse the repository at this point in the history