Re: gdmgreeter CPU usage



score is a member of a locally defined struct and it does not
appear to escape.  So it can probably be made to use ints,
assuming that the range of values used is sane.

But it feels as-if a large list is created and old the first few
elements are needed.  If that is truly the case, optimizing
the sort is not the right place to start; avoiding unneeded
work is.

Morten



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]