bwipp / postscriptbarcode

Barcode Writer in Pure PostScript
https://bwipp.terryburton.co.uk
MIT License
463 stars 65 forks source link

Optimisation: Pre-allocate rather than copy-extend arrays #214

Open terryburton opened 2 years ago

terryburton commented 2 years ago

Some encoders make frequent use of the following idiom within a loop:

/cws [ cws aload pop cw ] def

Better to pre-allocate than to extend by copying.