-
Notifications
You must be signed in to change notification settings - Fork 114
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
result_and_scratch_storage/future
design issues:
#2003
Comments
I agree that there are issues which need to be addressed here. However, if we want to expand its functionality to be suitable to more cases, we just need to be sure not to harm performance of the existing cases. I think that is possible but we need to be aware of it. |
As mentioned here, I think we can use I would at least like to fix this and remove the specific functions which are only there to return a pair of |
I do think the second point:
Needs to be treated with care though, while this would be "nice to have" to allow differing types for return and temporary, it does limit potential performance, so it should be done with care. Certainly we can design it to give the most optimal performance for the types used though. |
Actually, there are really
result_and_scratch_storage/future
design issues:result_and_scratch_storage
type combines live-time extension of a temporary buffer and provides returning some result values from a kernel.result_and_scratch_storage
type has limitation - only one type for return values and temporary values.result_and_scratch_storage
allows to set more than one value return, but just the same type and there is not effective API in future object to get the all values, just the first.Originally posted by @MikeDvorskiy in #1942 (comment)
The text was updated successfully, but these errors were encountered: