Quoting Ilia Mirkin (2016-04-01 11:47:49)
> On Fri, Apr 1, 2016 at 2:41 PM, Dylan Baker <baker.dyla...@gmail.com> wrote:
> > Quoting Ilia Mirkin (2016-04-01 08:46:19)
> >
> > Something like this(?):
> >
> > temp = [(f.offset, f) for f in self.functions_by_name.itervalues()
> >         if f.offset != -1]
> > return (func for _, func in sorted(temp))
> 
> And this has the nice advantage of not creating a dict for no reason.
> There's the hypothetical issue of 2 functions having the same offset,
> but... I don't think that's possible in practice.

I would hope that it would cause regressions in piglit if there was such a
collision.

At least either way it's not a change in the generator behavior, since
none of the implementations (the original, the one I sent to the list,
yours, or either of two I proposed) would be robust against that.

Attachment: signature.asc
Description: signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to