-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Roll-back tracking full language objects for internal calls #568
Roll-back tracking full language objects for internal calls #568
Conversation
@rich-iannone I think this fixes the original issue and should be ready to go! One Q for this PR while I'm on it - do we need a test for memory size at serialization? I suppose it'd only exist to guard against regressions like this, but could be useful since it can easily go unnoticed - though I'm unsure how it's best implemented (some upper bound size?) or whether it's stable enough to be useful as a test at all (across OS, R setups, etc.). |
This is amazing!! Thank you so much for working with the user to track this down (and of course for the PR).
This seems somewhat brittle as a test. There might be a convenient way to monitor the size of serialized agents through a separate workflow that just reports the sizes as an artifact (which we could check every now and then). |
Thanks - this makes sense! For now I just added a manual test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks again! |
This is a small amendment of #543, which introduced a problem in serialization size due to
validation_set$capture_stack$pb_call
storing language objects with environments attached.Now, we simply track the name of the internal function in string (ex:
"tbl_val_comparison"
) as opposed to the full call (ex:tbl_val_comparison(...)
). No user-visible changes.What used to be 13kB -> 208kB is now 1Kb -> 133b. Reprex from #567:
Rider: fixes a typo in examples of
?create_agent