[Pidgin] #2825: Pidgin cannot reconnect after changing networks
Pidgin
trac at pidgin.im
Thu Feb 19 19:32:27 EST 2009
#2825: Pidgin cannot reconnect after changing networks
---------------------+------------------------------------------------------
Reporter: novakyu | Owner: darkrain42
Type: defect | Status: new
Milestone: | Component: libpurple
Version: 2.1.1 | Resolution:
Keywords: | Launchpad_bug:
---------------------+------------------------------------------------------
Comment(by dyfrgi):
The overhead is minimal. I wrote a short C program to benchmark how long
it takes to run res_init 100 times, and the result was about 0.003
seconds. This will be slightly higher if other things are done in between,
but resolv.conf should stay in cache for the duration of (e.g.) startup,
when many connections are initiated. When run more times, it scales
roughly linearly. 10 times (closer to the number of connections initiated
by most users, I suspect) takes 0.000534 seconds.
I've attached the C program, if anyone wants to verify this. Compile with
gcc -lresolv res_init_bench.c -o res_init_bench.
--
Ticket URL: <http://developer.pidgin.im/ticket/2825#comment:13>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list