像这样的优化在静态编译环境中是不可能的,因为关于锁使用模式的信息在静态编译时得不到。
An optimization like this would not be possible in a statically compiled environment because the information about lock usage patterns is not available at static compilation time.
比如泛型更改——泛型类型信息——由编译器用于实施编译时安全,但是生成的字节码仍然到处使用强制转换。
Likewise with the generics changes — the generic type information is used by the compiler to enforce compile-time safe usage, but the generated bytecode still USES casts everywhere.
声明式信息在编译时转换为命令形式,而不是在运行时每次使用时进行转换,这使代码更快。
The declarative information is transformed into an imperative form at compile-time, rather than each time it is used at runtime, resulting in faster code.
应用推荐