Sasha, On Fri, Feb 27, 2009 at 7:49 AM, Sasha Khapyorsky <[email protected]> wrote: > 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.
It's minor but memset is slower for this. -- Hal > Sasha > _______________________________________________ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
