If you don't need to access an object's fields, make your method static. Invocations will be about 15%-20% faster.
如果不需要访问某对象的字段,将方法设置为静态,调用会加速15%到20%。
If you don't need to access an object's fields, make your method static. Invocations will be about 15%-20% faster.
如果不需要访问某对象的字段,将方法设置为静态,调用会加速15%到20%。
应用推荐