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

Comparing AnyEvent/lib/AE.pm (file contents):
Revision 1.11 by root, Tue Aug 16 14:47:26 2011 UTC vs.
Revision 1.12 by root, Wed Aug 17 22:03:02 2011 UTC

53 53
54Also, some backends (Perl and EV) are so fast that the method call 54Also, some backends (Perl and EV) are so fast that the method call
55overhead is very noticeable (with EV it increases the execution time five- 55overhead is very noticeable (with EV it increases the execution time five-
56to six-fold, with Perl the method call overhead is about a factor of two). 56to six-fold, with Perl the method call overhead is about a factor of two).
57 57
58At the moment, there is no checking (L<AnyEvent::Strict> does not
59affect this API), so the L<AnyEvent> API still has a definite advantage
60here.
61
62Note that the C<AE> API is an alternative to, not the future version of, 58Note that the C<AE> API is an alternative to, not the future version of,
63the AnyEvent API. Both APIs can be used interchangeably and and there are 59the AnyEvent API. Both APIs can be used interchangeably and there are
64no plans to "switch", so if in doubt, feel free to use the L<AnyEvent> 60no plans to "switch", so if in doubt, feel free to use the L<AnyEvent>
65API in new code. 61API in new code.
66 62
67As the AE API is complementary, not everything in the AnyEvent API is 63As the AE API is complementary, not everything in the AnyEvent API is
68available, and you still need to use AnyEvent for the finer stuff. Also, 64available, and you still need to use AnyEvent for the finer stuff. Also,
69you should not C<use AE> directly, C<use AnyEvent> will provide the AE 65you should not C<use AE> directly, C<use AnyEvent> will provide the AE
70namespace. 66namespace.
67
68At the moment, these functions will become slower then their method-call
69counterparts when using L<AnyEvent::Strict> or L<AnyEvent::Debug>::wrap.
71 70
72=head2 FUNCTIONS 71=head2 FUNCTIONS
73 72
74This section briefly describes the alternative watcher 73This section briefly describes the alternative watcher
75constructors. Semantics are not described here; please 74constructors. Semantics are not described here; please

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines