return (! (year %100 == 0 && year % 400 != 0) ); 改为 return (! (year %100 == 0 && year % 16 != 0) ); 可以提高一点点性能:) 执行300000万次的结果 create_date cost : 00:00:00.070101 DateValidate2 cost : 00:00:07.110224 DateValidate3 cost : 00:00:06.769735//改了的 valid_date1 cost : 00:00:06.749705 valid_date2 cost : 00:00:06.849850 boost_date_validate cost : 00:00:18.096021