Remove needless setting
Remove needless function
Reduce history size for completion speed