# compress.xz: remove copyForwards from tight loop · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/a21f9b6d8b9b027e64795dcdec40494bad76675e)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: a21f9b6d8b9b027e64795dcdec40494bad76675e

Requested commit: a21f9b6d8b9b027e64795dcdec40494bad76675e

Commit: a21f9b6d8b9b027e64795dcdec40494bad76675e

Tree: 7e4e28e59005ba7b09e4e9ba5a3935f1e1a1dc70

Author: Igor Anić

Committer: Igor Anić

## Message

```
compress.xz: remove copyForwards from tight loop

In the example from the issue #19052 to_read holds 213_315_584
uncompressed bytes. Calling read with small output results in many
shifts of that big buffer.
This removes need to shift to_read after each read.

```

## Parents

- [b9cca3b63dbcedadbda1c884e5b3333c8458b30d](https://git.cafe/gitcafe/zig/commit/b9cca3b63dbcedadbda1c884e5b3333c8458b30d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/a21f9b6d8b9b027e64795dcdec40494bad76675e?format=markdown)
