>I guess the function to read from the iterator does need to do the >copying out. I wonder if it's worth trying to get really tricky and >do the unpacking in the same step?
Internally, I copy a split attribute into an intermediate buffer that is allocated as part of the cursor / iterator, then unpack into the final buffer. Ib_sa_iter_attr would simply return a pointer to the intermediate buffer, but this does prevent being really clever and unpacking in the same step. It's challenging enough for the code to handle different sized attributes arbitrarily split across two MADs. I can't imagine trying to unpack at the same time actually being faster than using an intermediate buffer. - Sean _______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
