Bouni / kicad-jlcpcb-tools

Plugin to generate BOM + CPL files for JLCPCB, assigning LCSC part numbers directly from the plugin, query the JLCPCB parts database, lookup datasheets and much more.
MIT License
1.16k stars 105 forks source link

unzip_parts.py - Reduce working memory size by reading and writing sm… #455

Closed chmorgan closed 4 months ago

chmorgan commented 5 months ago

…aller chunks into memory vs. the whole zip file parts

Reduces the data read into ram from 76MB (the size of each zip file at present) to 1MB.

whmountains commented 5 months ago

For posterity: see discussion in #448 for details of the logic behind commit cf2de77.

Bouni commented 4 months ago

From 107s down to 47s, nice 😎