KLayout / klayout

KLayout Main Sources
http://www.klayout.org
GNU General Public License v3.0
808 stars 206 forks source link

strm2oas --compression-level=10 doesn't write rep 1/2/3 #1893

Open stefanottili opened 1 month ago

stefanottili commented 1 month ago

The attached test.gds.gz contains 6 rectangles placed as a 3x2 array with 100x75 spacing. This could be written as a rep 1, but strm2oas doesn't do that, no matter the compression-level. Isn't it supposed to be doing that even at the default compression level of 2 ?

Since zlib compresses larger rep 11 very well, rep 1/2/3 will only lead to small file size reductions.

strm2oas --compression-level=10 test.gds.gz a.oas
rep 11 4 25 (4,0) (4,0) (-8,3) (4,0) (4,0)
rep 1 1 0 100 75
image

test.gds.gz