[Interest] QFile subclass that does HFS compression?

Konstantin Tokarev annulen at yandex.ru
Mon Dec 17 18:35:40 CET 2018



17.12.2018, 20:13, "Thiago Macieira" <thiago.macieira at intel.com>:
> On Monday, 17 December 2018 01:36:50 PST René J.V. Bertin wrote:
>>  Using HFS compression can be very beneficial for files that you write once
>>  and read often (or very infrequently) as well as for tiny files (which are
>>  reduced to only a directory entry). Being able to create such files
>>  directly in compressed form is typically an order of magnitude faster than
>>  using a post-hoc compression utility like afsctool.
>
> How does that work? Is that just an ioctl, fcntl or a similar system call on
> the open file descriptor? If so, you can do it right now.
>
> Do you want an API for it? Then if you had a few more attributes and OSes that
> could benefit from this, the proposal would be stronger. NTFS and btrfs have
> compression, for example, and on Linux you can set attributes like secure
> deletion too.

UBIFS (which is often found in embedded devices with raw NAND flash) also supports
compression flag, however it's usually used to disable compression of certain files
while everything else is compressed by default.

>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest

-- 
Regards,
Konstantin




More information about the Interest mailing list