-
Notifications
You must be signed in to change notification settings - Fork 4
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
Extract wasm logic from DVCClient into a new wrapper #152
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
SetClientCustomData(customData []byte) error | ||
Variable(user DVCUser, key string, variableType string) (variable Variable, err error) | ||
Close() | ||
} |
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.
I'm probably going to need to tweak this interface so the serialization of the user and custom data only happens for the WASM flow. I think that's only needed for passing that data safely to WASM?
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.
only really needed for passing data safely - and performance - but we should be fine moving to just a raw go type for params if we're slowly deprecating WASM fully
client_native.go
Outdated
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.
Removing these in this PR to make the tests pass cleanly without the native-specific client methods being fully implemented, but I'll add them back again in the next PR.
client_wasm.go
Outdated
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.
Fun fact - this filename didn't work because suffixing with _wasm
tells Go to only compile it when building for the "wasm" arch, which is one of the supported targets of the compiler.
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.
suffixes are hard
edbf57b
to
fb5033c
Compare
extract wasm logic from DVCClient into a new wrapper
This refactors the DVCClient so that the WASM and object pool related code is now contained inside a new wrapper type, WASMLocalBucketing.