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
Deepcopy of the module #70
Comments
For now, add the following import Base.deepcopy_internal
deepcopy_internal(x::Module,stackdict::IdDict) = x Note that this basically makes Module's shallow copy. i.e., treats them as references. This is very unlikely to cause issues globally since right now it errors. I tried to see if tehre was a way to "stop" the recursiion to copy a weak reference but it doesn't seem immediately possible. Later we can revisit this hack. |
This is triggering a compilation warning, so we should revsit at some point:
|
Yeah, essentially we overrode that line in |
Def. low priority for now, or at least it seems that way. One performance hit we could be exposing ourself to is that we're overwriting a fairly core Julia function, which could trigger a bunch of recompilations. Either way, the hit we're taking is at JIT spinup time and not runtime, so I'm not terribly worried for now. |
Exactly. Yeah, this was intended as a hack to get us through, and we would need to revsit. What I didn't realize was that it was overwriting anything - rather than just adding in something that didn't already exist. But I don't think it will cause any immediate issues with the runtime. The other things I tried (e.g. storing a So the next stage in the hack is to add in a wrapper |
No description provided.
The text was updated successfully, but these errors were encountered: