[Twisted-Python] Twisted and SNMP

Anthony Baxter anthony at interlink.com.au
Tue Feb 10 08:21:24 EST 2004

Thomas Favier wrote:
> You bring my point with SNMP : I've tried to build a SNMP poller based 
> on twisted and pySNMP. Main trouble i've had is the decoding time of the 
> pure python ASN parser. It spent about 1 full second decoding (packets 
> are about 7ko, as i get all values and tables with a GET-BULK, there is 
> room for improvement by splitting requests, but that's not significant 
> for that matter). So i switched to a threaded implementation using 
> yapsnmp (and ugly deferToThreads). Decoding times are about 0.02 seconds 
> for the same requests. Load on the server was more than halved.

Considered doing some profiling, then using psyco or pyrex to remove the
bottlenecks? This seems, to me, like something they'd be great at.

More information about the Twisted-Python mailing list