Post by Osama ElnaggarI'm currently working on a Python audisp plugin. My main routine looks...aup = auparse.AuParser(auparse.AUSOURCE_FEED)aup.add_callback(process_event, None)aup.feed(_)...While profiling my plugin, I noticed that 95% + of the CPU time used by myplugin is used in fileinput.input(), waiting/reading from inputIs there any way to lower this or preferred way to poll/read?

I don't do much if any python programming. But in C, all examples include aselect in the event processing loop. Python has a select module. There areexamples on the internet about how to use it. One is here: