TODO 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. XZ Utils To-Do List
  2. ===================
  3. Known bugs
  4. ----------
  5. The test suite is too incomplete.
  6. If the memory usage limit is less than about 13 MiB, xz is unable to
  7. automatically scale down the compression settings enough even though
  8. it would be possible by switching from BT2/BT3/BT4 match finder to
  9. HC3/HC4.
  10. XZ Utils compress some files significantly worse than LZMA Utils.
  11. This is due to faster compression presets used by XZ Utils, and
  12. can often be worked around by using "xz --extreme". With some files
  13. --extreme isn't enough though: it's most likely with files that
  14. compress extremely well, so going from compression ratio of 0.003
  15. to 0.004 means big relative increase in the compressed file size.
  16. xz doesn't quote unprintable characters when it displays file names
  17. given on the command line.
  18. tuklib_exit() doesn't block signals => EINTR is possible.
  19. SIGTSTP is not handled. If xz is stopped, the estimated remaining
  20. time and calculated (de)compression speed won't make sense in the
  21. progress indicator (xz --verbose).
  22. If liblzma has created threads and fork() gets called, liblzma
  23. code will break in the child process unless it calls exec() and
  24. doesn't touch liblzma.
  25. Missing features
  26. ----------------
  27. Add support for storing metadata in .xz files. A preliminary
  28. idea is to create a new Stream type for metadata. When both
  29. metadata and data are wanted in the same .xz file, two or more
  30. Streams would be concatenated.
  31. The state stored in lzma_stream should be cloneable, which would
  32. be mostly useful when using a preset dictionary in LZMA2, but
  33. it may have other uses too. Compare to deflateCopy() in zlib.
  34. Support LZMA_FINISH in raw decoder to indicate end of LZMA1 and
  35. other streams that don't have an end of payload marker.
  36. Adjust dictionary size when the input file size is known.
  37. Maybe do this only if an option is given.
  38. xz doesn't support copying extended attributes, access control
  39. lists etc. from source to target file.
  40. Multithreaded compression:
  41. - Reduce memory usage of the current method.
  42. - Implement threaded match finders.
  43. - Implement pigz-style threading in LZMA2.
  44. Buffer-to-buffer coding could use less RAM (especially when
  45. decompressing LZMA1 or LZMA2).
  46. I/O library is not implemented (similar to gzopen() in zlib).
  47. It will be a separate library that supports uncompressed, .gz,
  48. .bz2, .lzma, and .xz files.
  49. Support changing lzma_options_lzma.mode with lzma_filters_update().
  50. Support LZMA_FULL_FLUSH for lzma_stream_decoder() to stop at
  51. Block and Stream boundaries.
  52. lzma_strerror() to convert lzma_ret to human readable form?
  53. This is tricky, because the same error codes are used with
  54. slightly different meanings, and this cannot be fixed anymore.
  55. Make it possible to adjust LZMA2 options in the middle of a Block
  56. so that the encoding speed vs. compression ratio can be optimized
  57. when the compressed data is streamed over network.
  58. Improved BCJ filters. The current filters are small but they aren't
  59. so great when compressing binary packages that contain various file
  60. types. Specifically, they make things worse if there are static
  61. libraries or Linux kernel modules. The filtering could also be
  62. more effective (without getting overly complex), for example,
  63. streamable variant BCJ2 from 7-Zip could be implemented.
  64. Filter that autodetects specific data types in the input stream
  65. and applies appropriate filters for the corrects parts of the input.
  66. Perhaps combine this with the BCJ filter improvement point above.
  67. Long-range LZ77 method as a separate filter or as a new LZMA2
  68. match finder.
  69. Documentation
  70. -------------
  71. More tutorial programs are needed for liblzma.
  72. Document the LZMA1 and LZMA2 algorithms.
  73. Miscellaneous
  74. ------------
  75. Try to get the media type for .xz registered at IANA.