MuPDF 1.22.0 Documentation
fz_malloc_no_throw, etc. Pool Allocator The pool allocator is used for allocating many small objects that live and die together. All objects allocated from the pool will be freed when the pool is freed. typedef struct { opaque } fz_pool; fz_pool *fz_new_pool(fz_context *ctx); void *fz_pool_alloc(fz_context *ctx, fz_pool *pool, size_t size); char *fz_pool_strdup(fz_context *ctx, fz_pool *pool, const char *s); void void fz_drop_pool(fz_context *ctx, fz_pool *pool); 4.1. MuPDF modules 123 MuPDF Documentation, Release 1.21.2 Reference Counting Most objects in MuPDF use reference counting to keep track of when they0 码力 | 175 页 | 698.87 KB | 8 月前3MuPDF 1.23.0 Documentation
fz_malloc_no_throw, etc. Pool Allocator The pool allocator is used for allocating many small objects that live and die together. All objects allocated from the pool will be freed when the pool is freed. typedef struct { opaque } fz_pool; fz_pool *fz_new_pool(fz_context *ctx); void *fz_pool_alloc(fz_context *ctx, fz_pool *pool, size_t size); char *fz_pool_strdup(fz_context *ctx, fz_pool *pool, const char *s); void void fz_drop_pool(fz_context *ctx, fz_pool *pool); 5.1. MuPDF modules 63 MuPDF Documentation, Release 1.23.0 Reference Counting Most objects in MuPDF use reference counting to keep track of when they0 码力 | 245 页 | 817.74 KB | 8 月前3MuPDF 1.25.0 Documentation
Release 1.25.0 Pool Allocator The pool allocator is used for allocating many small objects that live and die together. All objects allocated from the pool will be freed when the pool is freed. typedef struct { opaque } fz_pool; fz_pool *fz_new_pool(fz_context *ctx); void *fz_pool_alloc(fz_context *ctx, fz_pool *pool, size_t size); char *fz_pool_strdup(fz_context *ctx, fz_pool *pool, const char *s); void void fz_drop_pool(fz_context *ctx, fz_pool *pool); Reference Counting Most objects in MuPDF use reference counting to keep track of when they are no longer used and can be freed. We use the verbs “keep”0 码力 | 259 页 | 1.11 MB | 8 月前3MuPDF 1.24.0 Documentation
Release 1.24.0 Pool Allocator The pool allocator is used for allocating many small objects that live and die together. All objects allocated from the pool will be freed when the pool is freed. typedef struct { opaque } fz_pool; fz_pool *fz_new_pool(fz_context *ctx); void *fz_pool_alloc(fz_context *ctx, fz_pool *pool, size_t size); char *fz_pool_strdup(fz_context *ctx, fz_pool *pool, const char *s); void void fz_drop_pool(fz_context *ctx, fz_pool *pool); Reference Counting Most objects in MuPDF use reference counting to keep track of when they are no longer used and can be freed. We use the verbs “keep”0 码力 | 249 页 | 830.15 KB | 8 月前3PyMuPDF 1.24.2 Documentation
__future__ import print_function, division import sys import os import time from multiprocessing import Pool, cpu_count import fitz # choose a version specific timer function (bytes == str in Python 2) mytime with which parameters are contained in the argument, because it will be passed in via pickling by the Pool class. So any large objects will increase the overall duration. Args: vector: a list containing range(cpu)] print("Starting %i processes for '%s'." % (cpu, filename)) pool = Pool() # make pool of 'cpu_count()' processes pool.map(render_page, vectors, 1) # start processes passing each a vector t10 码力 | 565 页 | 6.84 MB | 1 年前3
共 5 条
- 1