Re: I assert that word lenth IS equal to word size!

Kevin Atkinson <[email protected]>
Newsgroups gmane.comp.gnu.aspell.devel
Message-ID <Pine.LNX.4.44.0506301128170.1560-100000@kevin-p3.atkinson.dhs.org>
On Wed, 29 Jun 2005, Gary Setter wrote:

> In version 0.60.3 module  suggest.cpp function
> Working::try_scan(), the following line was removed:
>         assert(strlen(sw->word) == sw->word_size);
> 
> I'm sure it is a good change, but would anyone care to mention
> why the change?

Performance.  The condition still must always be true.

-- 
http://kevin.atkinson.dhs.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.