Within reason, adding data to the vlib_frame_t shouldn’t hurt very much. I wouldn’t add the contents of the Beinecke Library, but a small amount of data should be OK.
If the data you have in mind is actually per-node, you can add it to the per-vector “scalar” field. Thanks… Dave From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Yuliang Li Sent: Friday, July 14, 2017 8:22 PM To: vpp-dev@lists.fd.io Subject: [vpp-dev] Will adding fields to existing structures affect performance? Hi, The code seems to be highly tuned for cache performance. If I want to add some more fields in the existing structures, are there any performance concerns? For example, if I want to add some fields in the frame structure (vlib_frame_t), are there dangers of affecting performance? Thanks, -- Yuliang Li PhD student Department of Computer Science Yale University
_______________________________________________ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev