Re: [capnproto] Performance of iterating through List vs. raw Data

2022-09-21 Thread Hui min
I want to ask a related question, and found out this thread. >From what I understand in the discussion, if I have struct Vector3d { x @0 :Float64; y @1 :Float64; z @2 :Float64; } and then struct Point3Array { data @0 :List(Vector3d); } Will i get a perfectly packed array of Vector3d in memory

Re: [capnproto] Performance of iterating through List vs. raw Data

2022-09-21 Thread Hui min
Another comment, I would also agree probably using raw data as the type is more appropriate, with a metadata information to encode the endianess. This would be similiar to http://docs.ros.org/en/melodic/api/sensor_msgs/html/msg/PointCloud2.html On Thursday, 15 August 2019 at 3:25:09 pm UTC+8 Ph

Re: [capnproto] Performance of iterating through List vs. raw Data

2022-09-21 Thread 'Kenton Varda' via Cap'n Proto
On Wed, Sep 21, 2022 at 9:42 AM Hui min wrote: > I want to ask a related question, and found out this thread. > > From what I understand in the discussion, if I have > > struct Vector3d { > x @0 :Float64; > y @1 :Float64; > z @2 :Float64; > } > > and then > > struct Point3Array { > data @0 :List(