Suggested compression for SDDS files
Posted: 15 Sep 2012, 11:29
I would like to make a suggestion for the SDDS code.
I noticed that in multiple pages SDDS files the redundancy is quite high. For example I have a .par file which contains 1500 pages. In each page a set of misalignment is used and correctors are set to reduce the orbit; well, this file is 275MB and contains a lot of data which is just repeated each page.
I tried to compress it with the open surce code 7zip obtaining a 4.5MB file. That's sixty times smaller, with more than 98% of space saved! Yes, of course this requires precious CPU time so the user should be able to chose the desired compression level.
An algorithm with selectable level of compression may be implemented directly in SDDS resulting in a transparent user experience.
I noticed that in multiple pages SDDS files the redundancy is quite high. For example I have a .par file which contains 1500 pages. In each page a set of misalignment is used and correctors are set to reduce the orbit; well, this file is 275MB and contains a lot of data which is just repeated each page.
I tried to compress it with the open surce code 7zip obtaining a 4.5MB file. That's sixty times smaller, with more than 98% of space saved! Yes, of course this requires precious CPU time so the user should be able to chose the desired compression level.
An algorithm with selectable level of compression may be implemented directly in SDDS resulting in a transparent user experience.