Major: 0.3.166

Updates:
1. Change many functions to inline functions for speed optimize.