DBC is especially valuable when you're dealing with external components or libraries and need to ensure that the data your application passes to them and receives from them is correct.
在处理外部组件或者库,并需要保证应用程序传递给它们的数据和从它们那里接收的数据是正确的时候,DBC特别有用。
You can do that, but you need to use XPCOM to bind to external libraries, and doing that reduces portability — or at least makes things more difficult.
您可以这样做,但是需要使用XPCOM绑定到外部库,而这样会降低可移植性,或者至少增加了移植的难度。
Remember, integer arithmetic is much faster than floating-point arithmetic, as it can usually be done directly by the processor, rather than relying on external FPUs or floating point math libraries.
记住,整形数运算要比浮点数运算快得多,因为处理器可以直接进行整型数运算,浮点数运算需要依赖于外部的浮点数处理器或者浮点数数学库。
应用推荐