pydantic-core icon indicating copy to clipboard operation
pydantic-core copied to clipboard

experiment: build release with `panic=abort`

Open davidhewitt opened this issue 1 year ago • 6 comments

Change Summary

Just to see what the estimated performance speedup of panic=abort is. It would have significantly worse UX on any panics though.

Related issue number

N/A

Checklist

  • [ ] Unit tests for the changes exist
  • [ ] Documentation reflects the changes where applicable
  • [ ] Pydantic tests pass with this pydantic-core (except for expected changes)
  • [ ] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

davidhewitt avatar Jan 15 '24 10:01 davidhewitt

CodSpeed Performance Report

Merging #1159 will not alter performance

Comparing dh/panic-abort (8ece60b) with main (031fc93)

Summary

✅ 155 untouched benchmarks

codspeed-hq[bot] avatar Jan 15 '24 10:01 codspeed-hq[bot]

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:loudspeaker: Thoughts on this report? Let us know!

codecov[bot] avatar Jan 15 '24 10:01 codecov[bot]

Let's consider rebasing this once the PyO3 changes for the "bound" API are done. There's no clear win here.

davidhewitt avatar Jan 15 '24 10:01 davidhewitt

I think the main win here is from better inlining of some of PyO3's internals, so maybe there's a future win to be had inside PyO3 before we try this change.

davidhewitt avatar Mar 13 '24 14:03 davidhewitt

I've updated the pr, but I think we shouldn't merge this before 2.7, given the number of changes involved, we should wait for 2.8 for this.

samuelcolvin avatar Mar 21 '24 21:03 samuelcolvin

I would suggest we think carefully before merging this, in particular how the changes to aborting instead of unwinding will affect users and whether that's something we actually want.

davidhewitt avatar Mar 25 '24 14:03 davidhewitt

@davidhewitt, is this something that we're still considering, or can we close as not planned?

sydney-runkle avatar Aug 17 '24 17:08 sydney-runkle

Let's close.

davidhewitt avatar Aug 18 '24 12:08 davidhewitt