In relation to simple assignments , boxing and unboxing are computationally expensive processes 相对于简单的赋值而言,装箱和取消装箱过程需要进行大量的计算。
Function written in c will be faster than boxing and unboxing it in python objects and namespaces 函数会比在python对象和名称空间中装箱和拆箱该函数的速度更快。
And , therefore , boxing and unboxing typically occur when storing or retrieving a value type . however , a 类型,所以在存储或检索值类型时通常发生装箱和取消装箱操作。
When the underlying value of a nullable type is unboxed , the common language runtime creates a new 在对可空类型的基础值进行取消装箱时,公共语言运行库创建一个新的初始化为基础值的
If the items are value types , they must be boxed when added to the list , and unboxed when they are retrieved 如果项是值类型,则必须在将其添加到列表中时进行装箱操作,在检索时进行取消装箱操作。
Such boxing and unboxing operations add performance overhead since they involve dynamic memory allocations and run - time type checks 当他们处于动态内存分配和运行时类型检查,装箱拆箱操作将增加性能消耗。
Such boxing and unboxing operations add performance overhead since they involve dynamic memory allocations and run - time type checks 这种装箱拆箱的操作,包括在动态内存分配和运行时检查里,增加了性能负担。
Generic types allow for the reuse of code and enhanced performance for collection classes ( due to boxing and unboxing issues ) 泛型可以提高集合类的代码重用性和执行效率(由于装箱和坼箱操作消耗时间的内存) 。
Similarly , when an object is cast to a value type , the compiler performs the unboxing , extracting the value type from the object wrapping 同样,当一个对象被强制转换为值类型时,编译器执行取消装箱,从对象包装中提取值类型。
In this mode , the weaver will correctly interpret the new features in java 5 ; for example , it will consider autoboxing and unboxing when determining whether 在这个模式中,织入器会正确地解释java 5中的新特性;例如,编译器在确定