Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1376)

Issue 2239005: Merges our hunspell change to hunspell 1.2.10.... (Closed)

Created:
10 years, 7 months ago by Hironori Bono
Modified:
9 years, 7 months ago
Reviewers:
brettw, Evan Stade
CC:
chromium-reviews
Base URL:
svn://chrome-svn.corp.google.com/chrome/trunk/deps/
Visibility:
Public.

Description

Merges our hunspell change to hunspell 1.2.10. This change refactors our hunspell change and merges it to hunspell 1.2.10. To compare with our old change to hunspell 1.2.8, this change changes the following points: 1. Use the original load_config() to parse the affix lines so we can use all hunspell options. 2. Enclose all our changes with '#ifdef HUNSPELL_CHROME_CLIENT' and '#endif'. 3. Remove unnecessary '#undef fclose'. BUG=40909 TEST=unit_tests.exe --gtest_filter=SpellCheckTest* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50438

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 9

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1821 lines, -164 lines) Patch
M third_party/hunspell/README.chromium View 1 2 3 1 chunk +14 lines, -28 lines 0 comments Download
M third_party/hunspell/google.patch View 1 2 3 1 chunk +1134 lines, -133 lines 0 comments Download
M third_party/hunspell/hunspell.gyp View 3 chunks +11 lines, -3 lines 0 comments Download
M third_party/hunspell/src/hunspell/affixmgr.hxx View 1 2 3 3 chunks +46 lines, -0 lines 0 comments Download
M third_party/hunspell/src/hunspell/affixmgr.cxx View 1 2 3 16 chunks +83 lines, -0 lines 0 comments Download
M third_party/hunspell/src/hunspell/filemgr.hxx View 1 2 3 2 chunks +25 lines, -0 lines 0 comments Download
M third_party/hunspell/src/hunspell/filemgr.cxx View 1 2 3 2 chunks +27 lines, -0 lines 0 comments Download
M third_party/hunspell/src/hunspell/hashmgr.hxx View 1 2 3 3 chunks +65 lines, -0 lines 0 comments Download
M third_party/hunspell/src/hunspell/hashmgr.cxx View 1 2 3 12 chunks +233 lines, -0 lines 0 comments Download
M third_party/hunspell/src/hunspell/htypes.hxx View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/hunspell/src/hunspell/hunspell.hxx View 1 2 3 3 chunks +17 lines, -0 lines 0 comments Download
M third_party/hunspell/src/hunspell/hunspell.cxx View 1 2 3 8 chunks +47 lines, -0 lines 0 comments Download
M third_party/hunspell/src/hunspell/license.hunspell View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/hunspell/src/hunspell/replist.hxx View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/hunspell/src/hunspell/suggestmgr.cxx View 1 2 3 4 3 chunks +101 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Hironori Bono
10 years, 7 months ago (2010-05-28 09:52:07 UTC) #1
Evan Stade
great! this LG to my untrained eyes, but maybe you should wait for Brett to ...
10 years, 7 months ago (2010-05-28 18:51:53 UTC) #2
brettw
LGTM
10 years, 7 months ago (2010-05-28 21:17:48 UTC) #3
Hironori Bono
10 years, 6 months ago (2010-06-22 09:25:42 UTC) #4
Thank you for your comments and sorry for my super-slow update. (I have been
salvaging this change from my corrupted disk.) I have updated the comments and
landed the updated one as r50438.

Regards,

Hironori Bono

http://codereview.chromium.org/2239005/diff/6001/7014
File third_party/hunspell/src/hunspell/suggestmgr.cxx (right):

http://codereview.chromium.org/2239005/diff/6001/7014#newcode17
third_party/hunspell/src/hunspell/suggestmgr.cxx:17: // A simmple class which
creates temporary hentry objects which can be
On 2010/05/28 18:51:53, Evan Stade wrote:
> nit: simple
> 
> nit: s/can be/are

Done.

http://codereview.chromium.org/2239005/diff/6001/7014#newcode26
third_party/hunspell/src/hunspell/suggestmgr.cxx:26: //     hentry* scoped_copy
= factory.CreateHashEntry(source);
On 2010/05/28 18:51:53, Evan Stade wrote:
> should be CreateScopedHashEntry ?

Done.

http://codereview.chromium.org/2239005/diff/6001/7014#newcode38
third_party/hunspell/src/hunspell/suggestmgr.cxx:38: // We need to improve it?
On 2010/05/28 18:51:53, Evan Stade wrote:
> can we track this with a bug?

Sorry for my obsolete comment. While fixing Issue 36523, I noticed hunspell 1.2
yielded more suggestions than hunspell 1.1 and it caused this performance
problem. (I should have written this comment after investigating it.) I have
removed this obsolete comment.

http://codereview.chromium.org/2239005/diff/6001/7014#newcode63
third_party/hunspell/src/hunspell/suggestmgr.cxx:63: //  
hash_item.entry->word[1] == hash_item->word[0].
On 2010/05/28 18:51:53, Evan Stade wrote:
> nit: hash_item.word[0] instead of hash_item->word[0]
> 
> however, I don't really understand why this is necessary. Maybe you could
> explain the purpose of astr?

Done. Sorry for my lazy comment. I have re-written the comment for this struct
to include description for 'astr'.

Powered by Google App Engine
This is Rietveld 408576698