fix perf issue for full type hints