Add new pref maxCodeHints

For #9529.
I confirmed this is a performance boost for Code Hints.