Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Add folder for stack usage calculations #6

Open
kammce opened this issue Oct 17, 2023 · 1 comment
Open

Add folder for stack usage calculations #6

kammce opened this issue Oct 17, 2023 · 1 comment

Comments

@kammce
Copy link
Collaborator

kammce commented Oct 17, 2023

There should be a distinct difference between stack memory when using result values and exceptions. Exceptions utilize no additional stack memory because no information about the air type is stored in any frame. With result types each frame, that ops into using result types or use a function that uses result types ,will need to have at least some memory allocated to storing the air type or discriminant.

@kammce kammce self-assigned this Oct 17, 2023
@kammce
Copy link
Collaborator Author

kammce commented Oct 17, 2023

Note that there is going to be a crossing point because exceptions do utilize stack memory to run the unwinding algorithms. This could vary depending on the complexity of the object from, but my guess is that it's fixed in size.

@kammce kammce removed their assignment Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant