突击步枪共有的特点是,分配器手柄可以让射手在全自动(连续发射)和半自动(单发发射)之间进行选择。
Characteristic of all assault rifles, a selector level allows the shooter to choose between automatic (continuous firing) and semi-automatic (single-shot firing).
如果局部化是唯一的目标,分配器可能总是尽可能接近的分配每个连续的块。
If locality were the only goal, an allocator might always allocate each successive chunk as close to the previous one as possible.
例如,让分配器判断通过合并块能获取多少总共的连续空间的开销和直接合并然后分割它们的开销一样大。
For example, it is just as costly for an allocator to determine how much total contiguous space would be gained by coalescing chunks as it would be to just coalesce them and then resplit them.
应用推荐