***SPAM*** Re: [ofa-general] Re: [PATCH] Add pkey table support to osm_get_all_port_attrs
Sasha Khapyorsky
sashak at voltaire.com
Fri Feb 27 04:49:48 PST 2009
On 06:33 Fri 27 Feb , Hal Rosenstock wrote:
> >>
> >> ?? ?? ?? ??memset(attr_array, 0, sizeof(attr_array));
> >>
> >> would be enough.
> >
> > Sure; next version.
>
> The thought above is that it is more efficient to just initialize the
> needed fields rather than the entire array which is not required.
I don't know for sure about this specific example, but normally memset()
is heavily optimized function so I would expect at least comparable
performance here.
Sasha
More information about the general
mailing list