修改 allocationSize 并且添加typeahead

Signed-off-by: bookup <bookup@yeah.net>