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

Fix recursive functions have higher inclusive cost than main #142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TRowbotham
Copy link

@TRowbotham TRowbotham commented Jun 1, 2021

Fixes the example given in #33 without trying to detect cycles. The costs of a calling function are reported as inclusive costs. When recursion happens, we don't want to add the inclusive cost of the called function to the calling function as they represent the same cost. This prevents inflating the inclusive cost of recursive functions, which should leave {main} with the highest inclusive cost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant