Allow up to 10,000 boundary array elements before we discard the
structure and start again.