Brice Goglin, le Mon 22 Mar 2010 11:43:10 +0100, a écrit : > Samuel Thibault wrote: > > Bert Wesarg, le Sun 21 Mar 2010 13:31:14 +0100, a écrit : > >> I would like to propose an interface change for these function, so > >> that the caller provide the to-be-filled cpuset, to reduce the > >> alloc/free frequency. > >> > > > > This is indeed better (and actually reduces the amount of code in > > hwloc), I have implemented it. > > > > Should we also convert some other functions that previously returned a > newly allocated cpuset ? For instance hwloc_cpuset_from_string and some > helpers in the glibc/libnuma/openfabrics headers
Mmm, I'd tend to say so. They were already exposed previously, but at least adding a parameter will not go unnoticed. Samuel