From the biography, The Philosophy of Bertrand Russell (1951):
I was invited to China where I spent nearly a year. I loved the Chinese, but it was obvious that the resistance to hostile militarisms must destroy much of what was best in their civilization. They seemed to have no alternative but to be conquered or to adopt many of the vices of their enemies. But China did one thing for me that the East is apt to do for Europeans who study it with sensitive sympathy: it taught me to think in long stretches of time, and not to be reduced to despair by the badness of the present. Throughout the increasing gloom of the past twenty years, this habit has helped to make the world less unendurable than it would otherwise have been.