# Re: \[PATCH\] read-cache: avoid misaligned reads in index v4

- From: Junio C Hamano \<hidden\>
- Date: 2022-09-26 23:03:02 
- List: git
- Page: https://ratatoskr.run/git/2022/09/7956731
- Thread: https://ratatoskr.run/git/2022/09/7956731/t.md

```text
Jeff King [ref] writes:

> I do find it a bit more straight-forward, but the extra copy is ugly,
> plus the "yuck" comment.

Yeah, the "yuck" memcpy() is, eh, unfortunate.  Consistently using a
single "pointer" (pos) to keep track of where we are does make the
structure of the code appear uniform and easier to follow, though.

```
