The extra variable is to avoid duplication and turns out to pay off in another way in the next step.
这个额外变量用于避免副本,事实证明,它将在下一步中以另一种方式带来好处。
Add an extra variable and two methods to the root bean in your data source, as Listing 8 shows. You can see these changes in the Root.java
在您的数据源中添加一个额外的变量和两中方法到您的根bean 中,如 列表8 所示。
Hence, the compiler cannot cache the value of a global variable in a register, resulting in extra (often unnecessary) loads and stores when globals are used.
所以编译器不会将全局变量存储在寄存器中,那样会带来额外的、不必要的负担和存储空间。
The instrumental variable in this instance allows a clear, credible estimate of the return from extra schooling for those most inclined to drop out from school early.
在这一研究中,对于那些倾向于尽早离开学校的人而言,使用辅助变量法就能够得出清晰可信的结果。
This means that you, the programmer, can tell Perl to do something extra when a variable is used.
这意味着,作为一名程序员,在使用变量时您可以让Perl做额外的事情。
However on Mac OS x, having the extra unused variable has no effect as both versions of the benchmarks come in at 120%.
然而在MacOSX上,即使有额外未被使用的变量也不会有任何影响,任何版本的基准测试的结果都是120%。
To make it uninitialized you have to spend extra effort and type "int i = void;" expressing that the uninitialized variable is intentional and not due to laziness.
要想不对i进行初始化,你需要额外的输入“int i =void;”来表示你是有意不对i进行初始化而不是因为疏忽大意。
Using CONSTANT is more risky because if you forget to use the extra level of indirection, you could potentially access the import address table's pointer to the variable - not the variable itself.
使用CONSTANT的风险更大,因为如果忘记使用额外级别的间接寻址,则访问的有可能是指向变量的导入地址表的指针,而不是变量本身。
Using CONSTANT is more risky because if you forget to use the extra level of indirection, you could potentially access the import address table's pointer to the variable - not the variable itself.
使用CONSTANT的风险更大,因为如果忘记使用额外级别的间接寻址,则访问的有可能是指向变量的导入地址表的指针,而不是变量本身。
应用推荐