OSDN Git Service

Replace unnecessary realloc()
authorXiaotao Duan <xiaotao@google.com>
Mon, 4 May 2009 04:30:17 +0000 (12:30 +0800)
committerXiaotao Duan <xiaotao@google.com>
Mon, 4 May 2009 04:30:17 +0000 (12:30 +0800)
commitc78dcdec607b4f50738a5b84fa170403e23c75ad
treec1445d2862c2f5427b5fc2c2a4eac7a7846383e1
parent8fb7e16cb2c271cb378c2d395594955369e2fb47
Replace unnecessary realloc()

Maximum length for a lemma is predefined and small.
Runtime memory reallocation will lead to performance
penalty. Predefined memory in stack is used insteadly.
jni/share/userdict.cpp