Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OASIS file size increases significantly after only reading in and writing out (even for maximum compression level) #281

Open
fnJeff opened this issue Nov 26, 2024 · 0 comments

Comments

@fnJeff
Copy link

fnJeff commented Nov 26, 2024

This is the same testcase as #277. While testing that fix, I was curious if it was related to the compression level, so I wrote out an OASIS using all 10 compression levels from the initial OASIS. What I saw was unexpected. I believe that the tool I write out the original OASIS also uses a default compression level of 6, same as the gdstk default. But for some reason, all OASIS files written out are more than 2x the size of the original, and the compression level 0 OASIS is more like 5x (which may be normal).

I've attached the original testcase, as well as the 10 versions saved from it in case it helps to debug the reason behind the increase. But below you can see the file sizes. The one without the number suffix is the one written out with the default compression level, which you can see matches 6 as expected.

-rw-r----- 1 xxxx xxxx    11133 Nov 20 14:17 test.oasis
-rw-r----- 1 xxxx xxxx    24793 Nov 26 11:36 test.saved.oasis
-rw-r----- 1 xxxx xxxx    54746 Nov 26 12:17 test.saved.oasis.0
-rw-r----- 1 xxxx xxxx    25992 Nov 26 12:17 test.saved.oasis.1
-rw-r----- 1 xxxx xxxx    25866 Nov 26 12:17 test.saved.oasis.2
-rw-r----- 1 xxxx xxxx    25687 Nov 26 12:17 test.saved.oasis.3
-rw-r----- 1 xxxx xxxx    25147 Nov 26 12:17 test.saved.oasis.4
-rw-r----- 1 xxxx xxxx    24862 Nov 26 12:17 test.saved.oasis.5
-rw-r----- 1 xxxx xxxx    24793 Nov 26 12:17 test.saved.oasis.6
-rw-r----- 1 xxxx xxxx    24757 Nov 26 12:17 test.saved.oasis.7
-rw-r----- 1 xxxx xxxx    24760 Nov 26 12:17 test.saved.oasis.8
-rw-r----- 1 xxxx xxxx    24760 Nov 26 12:17 test.saved.oasis.9

test.oasis.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant