note 72448 added to function.similar-text
| From: | Paul at osu1 dot php dot net | Date: | Fri, 19 Jan 2007 04:50:06 +0000 |
| Subject: | note 72448 added to function.similar-text | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121910@lists.php.net to get a copy of this message | ||
The speed issues for similar_text seem to be only an issue for long sections of text (>20000
chars).
I found a huge performance improvement in my application by just testing if the string to be tested
was less than 20000 chars before calling similar_text.
20000+ took 3-5 secs to process, anything else (10000 and below) took a fraction of a second.
Fortunately for me, there was only a handful of instances with >20000 chars which I couldn't
get a comparison % for.
----
Server IP: 203.16.234.91
Probable Submitter: 141.132.11.3
----
Manual Page -- http://www.php.net/manual/en/function.similar-text.php
Edit -- https://master.php.net/note/edit/72448
Del: integrated -- https://master.php.net/note/delete/72448/integrated
Del: useless -- https://master.php.net/note/delete/72448/useless
Del: bad code -- https://master.php.net/note/delete/72448/bad+code
Del: spam -- https://master.php.net/note/delete/72448/spam
Del: non-english -- https://master.php.net/note/delete/72448/non-english
Del: in docs -- https://master.php.net/note/delete/72448/in+docs
Del: other reasons-- https://master.php.net/note/delete/72448
Reject -- https://master.php.net/note/reject/72448
Search -- https://master.php.net/manage/user-notes.php