Le 22/12/2013 13:03, 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"
Sorry, I actually meant ~ /foo|bar/ The code for ~ "foo" does indeed look suboptimal (to say the least)... > 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). Is the result right with double quotes? > It does not seem like the "|" inside a string is documented on ben.d.n[2]. It is captured by <regex>. Cheers, -- Stéphane -- To UNSUBSCRIBE, email to debian-ocaml-maint-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52b6d7da.9020...@debian.org