摘要 |
<p>A method and a device for storing and reading/writing composite document are disclosed. The method includes: an initial storing area is pre-allocated for an inner controlling stream of the composite document, and the initial storing area is continuous sectors or sector clusters; the inner controlling stream is stored in the initial storing area. The patches of a user data steam and the inner controlling stream in the composite document are reduced using the method or device. Correspondingly, pre-allocating storing area makes the probability of continuously storing the user data steam and the inner controlling stream in the composite document increased. The I/O can be optimized by introducing a strategy of reading cache and writing in a batch size, which can improve the efficiency of reading and writing.</p> |