> -- sandeep.manne@gmail.com <sandeep.manne@gmail.com> wrote
> (on Tuesday, 03 August 2010, 04:58 AM +0000):
>> I feel zend captcha image is too complex and effecting performance on
>> huge requests when I traced the execution I found its adding thousands
>> of execution steps. Please try to optimize it with much simpler
>> captcha
>
> Please provide us with some concrete information from your code tracing.
> Bonus points if you can make some concrete recommendations on where we
> can simplify.
i didn't feel zend captcha is so complex, maybe a controller helper
could make it easer
anyway i got a problem in production when i tried use it, disk i/o ;-)
> CAPTCHA is actually a non-trivial undertaking, as it requires a fair bit
> of due diligence to ensure you get unique images that are obscured
> enough that they cannot be parsed by machines. Additionally, creating an
> image of this sort using PHP's GD requires quite a number of different
> calls just to draw the image -- and of course there's also the disk I/O
> requirement (as the image needs to have a physical representation on
> disk so that it may be displayed).
yeah, that's exactly the problem i got here, disk i/o
when we got much requests per second file-system started crying
we solve that extending zend_captcha and return image content instead
of writing in disk, also it was necessary create an action to display
the image, keep in session captcha id... so actually i only used image
create method
sorry people i don't have numbers, but it was a real problem
> If performance is an issue, and you still require using a CAPTCHA, I
> would recommend using something like ReCaptcha (for which we provide an
> adapter); this will offload much of the processing (though it introduces
> some potential network latency).
we thought to solve with re-captcha, but it was an emergency, so we
just rewrite our application without external dependency
--
Renan de Lima
没有评论:
发表评论