1 zooplah May 04, 2012 08:21
3 zooplah Dec 25, 2013 04:49
It looks promising, thanks for sharing.
However the plugin needs serious structure changes to improve performance.
Hmm. I came here to see if I could delete this post (it seems that I can't), as Walter Cruz has his own post about his, when I saw your response. What exactly is so harmful to performance? I took out the code for parsing the INI files and put the settings in a global variable that would only get filled once, but that still only took around a millisecond from the run time (7.2 milliseconds to 6.1 on my computer; doubtlessly it would be much faster either way running on my host, as my own computer isn't very fast), a small performance gain from an already suitably fast plugin. The other parts of the code are things I don't see how they could be faster, being copied more or less exactly from the reference generic plugin provided in the Bad Behavior distribution: calls the bb2_start() function that runs Bad Behavior and inserts information about the run time in the head and the number of accesses blocked in the last week at the bottom of the page.
It looks promising, thanks for sharing.
However the plugin needs serious structure changes to improve performance.