同样,我们的实现覆盖了其中一些do_foo虚方法。
Likewise, our implementation overrides some of these virtual do_foo methods.
Rhino代码读起来很像C程序:它避免过多的分配,并且尽量多地使用跳转表(Jump Tables)来避免虚方法查询(Virtual Method Lookups)的额外开支。
The Rhino code base reads almost like C code: it avoids allocation and does as much as possible with jump tables to avoid the overhead of virtual method lookups.
类在不必要的时候不要包含虚方法。
Classes do not contain virtual methods when they are not needed.
应用推荐