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

Forgot the memory usage cost for serialiseData #4486

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

kwxm
Copy link
Contributor

@kwxm kwxm commented Mar 22, 2022

A massive PR for the memory cost of serialiseData, which I forgot to do in #4480. We have to account for the size of the serialized object as a function of the size of the input, so I've gone for a factor of 2 to account for any overhead. A factor of 1 would probably be safe anyway though.

@@ -513,7 +513,7 @@
"memory": {
"arguments": {
"intercept": 0,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was tempted to add in a few words for extra overhead here but thought better of it.

@bezirg bezirg self-requested a review March 22, 2022 12:46
@michaelpj michaelpj merged commit 32268d3 into master Mar 22, 2022
@kwxm kwxm deleted the kwxm/costing/serialiseData-memory-usage branch March 22, 2022 14:11
@kwxm
Copy link
Contributor Author

kwxm commented May 2, 2022

(I failed to update the cost-model-generation code here, but that's fixed in #4570.)

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.

3 participants