Concurrency in enterpolation #4
-
|
This is in the docs for the /// We do want to generate workspaces every time the method is called as this allows as safe concurrency.
/// This may impact performance as for DynSpace we always allocate memory. However as their is an alternative,
/// this is accepted.
pub trait Space<T>It should probably say: "However as there is no alternative, this is accepted." I'm not quite sure what this comment says? What is the reason for these spaces being |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
I see you already found the new discussions.
You are totally correct, it should say "However as there is no alternative, this is accepted". It seems I wrote this comment a little to late in the evening and forgot how to write proper sentences. So basically what the comment is saying is: So in summary there is no reason these spaces are If you don't want to wait for the next update, you are always able to implement your own I hope this answers your questions :). If you have any other questions please let me know. |
Beta Was this translation helpful? Give feedback.
I see you already found the new discussions.
ConstSpaceshould definitly beSendandSyncand if I'm not mistaken the same should hold true forDynSpace. I think they don't get automatically implemented because they contain a raw pointer in their phantom field (used to "store" the type data). and I did not implement these traits manually.You are totally correct, it should say "However as there is no alternative, this is accepted". It seems I wrote this comment a little to late in the evening and forgot how to write proper sentences. So basically what the comment is saying is:
DynSpaceallocates memore every time aBSplineCurve calculates a point. This was by design to allowDynSpaceto…