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

Bug#732836: ben: tracker could do with a performance enhancement



On 2013-12-22 12:19, Stéphane Glondu wrote:
> Le 22/12/2013 10:59, Niels Thykier a écrit :
>> In particular, it seems to be very slow for ben files containing a lot
>> of "OR" relations; even if these are exact package names (see attached
>> file).
> 
> Did you try:
> 
>   .depends ~ "foo|bar"
> 
> instead of:
> 
>   .depends ~ "foo" | .depends ~ "bar"
> 
> ?
> 
> Cheers,
> 

Thanks for the tip; it does seem to improve the general performance of
these files considerably.  Now all 40 files on release.d.o are processed
in 3m and 30 seconds[1].  Previously it was 7 minutes excluding the one
I attached (which seemed to take more than 20 minutes alone).

It does not seem like the "|" inside a string is documented on ben.d.n[2].

~Niels

[1] The auto-generated ones makes up about 17-18 of those 40; the rest
have been deployed manually.

[2] http://ben.debian.net/

The only thing I noticed was:

"""
.depends ~ "libapt-pkg4.12"

This one is simpler than the first one in the sense that libapt-pkg4.12
is considered as a plain string and not a regular experssion.
"""


Reply to: