ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent/Impl/Glib.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent/Impl/Glib.pm (file contents):
Revision 1.19 by root, Tue Jul 8 23:10:20 2008 UTC vs.
Revision 1.20 by root, Thu Jul 24 06:31:37 2008 UTC

14This module provides transparent support for AnyEvent. You don't have to 14This module provides transparent support for AnyEvent. You don't have to
15do anything to make Glib work with AnyEvent except by loading Glib before 15do anything to make Glib work with AnyEvent except by loading Glib before
16creating the first AnyEvent watcher. 16creating the first AnyEvent watcher.
17 17
18Glib is probably the most inefficient event loop that has ever seen the 18Glib is probably the most inefficient event loop that has ever seen the
19light of the world: Glib not only scans all its watchers (really, ALL 19light of the world: Glib not only scans all its watchers (really, ALL of
20of them, whether I/O-related, timer-related or not) during each loop 20them, whether I/O-related, timer-related or what not) during each loop
21iteration, it also does so multiple times and rebuilds the poll list for 21iteration, it also does so multiple times and rebuilds the poll list for
22the kernel each time again, dynamically even. 22the kernel each time again, dynamically even.
23
24On the positive side, Glib generally works correctly, no quarrels there.
23 25
24If you create many watchers (as in: more than two), you might consider one 26If you create many watchers (as in: more than two), you might consider one
25of the L<Glib::EV>, L<EV::Glib> or L<Glib::Event> modules that map Glib to 27of the L<Glib::EV>, L<EV::Glib> or L<Glib::Event> modules that map Glib to
26other, more efficient, event loops. 28other, more efficient, event loops.
27 29

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines