2010年8月3日星期二

Re: [fw-mvc] Zend captcha image

-- 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.

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).

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).

--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

没有评论: