-
Notifications
You must be signed in to change notification settings - Fork 98
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
remove __get_candid_interface_tmp_hack
endpoint
#4386
Conversation
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.
Thanks! This looks great! Can you add to the Changelog.md
?
__get_candid_interface_tmp_hack
endpoint
@ggreif Why does it cause gas change at all? |
I think this is due to the static heap being different which can affect deserialization of bignums due to @gabor's speculative decoding of compact bignums. @luc-blaeser look familiar to you? I kicked off the mac build again since it failed due to drun non-determinism. |
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, but I wonder if any external folk are relying on it....
Thanks for cleaning this up!
Hmm, I'm not sure why the perf changed, tbh. I think my original hunch was wrong, actually. There's no deserialization going on here, is there? |
The benchmark may contain deserialization, but I don't know why the perf changed. |
We are still using it in our Java Agent so we need to fix it and replace with metadata. Any example how to get idl from running canister using metadata? |
If you already have an agent library, you can fetch the state tree, e.g., Concretely, here is the code in Rust: https://github.com/dfinity/agent-rs/blob/main/ic-agent/src/agent/mod.rs#L994 and code in agent-js: https://github.com/dfinity/agent-js/blob/main/packages/agent/src/canisterStatus/index.ts#L144 |
Thank you, I will fix our Java code. |
Worked. Fixed our Java Agent. We will publish fixed library ASAP. Thanks for help. |
Now that candid are in the canister metadata for quite a while,
tmp_hack
is redundant. It also cannot be set to private like we do in metadata.