On Tuesday 14 January 2014 22:59:42 you wrote:
> Do you actually need more than one query? At least rmadison on the
> command line happily accepts several packages at once:

... [ several seconds of dumbfounded silence ]

AAAAAAAAAAAAAAAAARRRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGGGGGGHH
HHHHHHHHHHHH !!!!!!!!

I've worked countless hours to shoehorn AnyEvent and async stuff in 
Config::Model to run parrallel queries to madison. :-(

In fact, madison API accepts several packages in a single URL like:

  http://qa.debian.org/cgi-bin/madison.cgi?package=perl-tk+perl&text=on

This will be much faster than running several queries (even parrallel 
queries).

Too bad I did not learn this a few months back.

ok. Here's the plan: I'm going to remove all async stuff from Config::Model 
and Config::Model::Dpkg. This will make the code simpler, well, less 
complicated.

I'll use the URL above to get all required information in blocking mode in 
C::M::Dpkg::Dependency.

If I ever need to run parrallel queries. I'll use Coro or old school fork with 
IPC. 

Thoughts ?

gregoa, thanks for the wake-up call :-)

-- 
 https://github.com/dod38fr/   -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/  -o-   irc: dod at irc.debian.org

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to