kylebarron commented on PR #39018:
URL: https://github.com/apache/arrow/pull/39018#issuecomment-1836388032

   > Let's run the benchmark suite and see.
   
   I wasn't familiar with the benchmark suite; I'll try to run that
   
   > Could we move the property onto the prototype? Would that work with 
transferring?
   
   [From 
web.dev](https://web.dev/articles/structured-clone#features_and_limitations):
   
   > `Prototypes`: If you use `structuredClone()` with a class instance, you’ll 
get a plain object as the return value, as structured cloning discards the 
object’s prototype chain.
   
   So as far as I can tell, anything on the prototype is lost. The only options 
to support the structured clone are either:
   
   - Add the type id onto `DataType` as an attribute
   - Somehow serialize/prepare a `DataType` before moving to a worker


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to