Repository navigation
Conversation
rcomer
left a comment
There was a problem hiding this comment.
Thanks @sahilmathur254 it looks like you have come up with some neat solutions, though I admit it took a bit of time for me to get my head around it!
One general point on the tests: I think it has been discussed elsewhere that we generally only put tests on public functions, not private ones. Hopefully another maintainer can comment on that.
|
@rcomer I moved the actual regression and non-positive spacing coverage to the public draw path. |
|
Labeled for back-port as asking for 300G is definitely a bug, but will not argue if anyone disagrees about backporting. |
rcomer
left a comment
There was a problem hiding this comment.
Thanks @sahilmathur254 I just have a comment about the error message and then I think this is good to go.
I think we are fine as long as nobody is currently passing a negative step. That would currently be a roundabout way of not getting any markers, so an odd thing to do. |
Co-authored-by: Ruth Comer <10599679+rcomer@users.noreply.github.com>
rcomer
left a comment
There was a problem hiding this comment.
Anyone can merge when CI is green.
…150-on-v3.11.x Backport PR #32150 on branch v3.11.x (FIX: Avoid unbounded allocations for float markevery)
PR summary
The large allocation appears to come from constructing the full
len(marker_delta) × len(delta)distance matrix. This avoids materialising boththe full
marker_deltasequence and the 2D distance matrix, preserves the existingfloat
markeveryplacement semantics, and adds extreme-zoom plus parity coverage.Closes #32133
Validation:
git diff --check: passed.AI Disclosure
This PR includes AI-assisted code understanding to speed up the process; the implementation and tests were updated and reviewed manually with AI assistance.
PR quality check