Skip to content

What does optimizable state means under optimization state? #28

@kaushik143

Description

@kaushik143

I am using deoptigate to find out bottlenecks for my node application and I see a lot of functions in an optimizable state but I don't understand if this is a bottleneck or not. Since I expect the function to be in an optimized state if it is not a bottleneck.

Attaching screenshot for optimizable state
Screenshot 2021-03-24 at 5 25 58 PM

Similarly, under inline-cache grouping, I see dynamic key access as megamorphism but that also I am not sure if it is bottleneck. Here is the definition of function const getResponseHeaders = (▲response, key) => response[☎'_headers'][☎key]; It shows problem at '_headers' and 'key' and key here is string which get 2 different values

Please help me understand properly that How to use this in a better way. I read this blog multiple times and it is really helpful in the case of deoptimization but nothing is mention for these two 2 other grouping.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions