collection efficiency improvement

Eric Firing wrote:


I understand what you wrote. I am a bit worried about the amount of complexity it would add to the collection code, however, and it seems like it would be useful only in quite special situations--and in those situations, there may be reasonable alternatives. For example, the ps backend uses nan as a flag or separator to skip drawing a line segment; if all backends did this, then it would provide a more general way to accomplish what you want to do.

I will keep your idea in mind, but I want to start off with a much simpler change.

I would tend to agree that nan entries would be a better idea than what I was talking about. I'll think about trying to modify the backend codes to support this behaviour, if they don't already.