I'm iterating over another world's data and this requires me to replicate the behavior of SystemAPI.Query manually. I'm not too shocked by that, however there is a performance benefit to SystemAPI.Query since it can iterate over chunks directly, whereas without it I have to use ToArchetypeChunkArray first.
When browsing the generated code, I did see EntityQueryEnumerator, which could be a good start, but it's documented with "exists only for use by code-gen".
Are there other ways to go about this?