Dimitris Papastamos wrote:
> There was a comment in the code that indicated that it might be worth
> investigating the use of trees.  I have not currently done any kind of
> serious benchmarking on this but I am looking into it.

nice.

> +static int
> +reqcmp(struct request *r1, struct request *r2)
> +{
> +     return r1->s - r2->s;
> +}

Don't write comparison functions like this. Overflow makes bad things happen.
The example in the man page is a good way to do it I think.

Reply via email to