Skip to content

use raw references instead of addr_of! / addr_of_mut!#5879

Merged
Icxolu merged 1 commit intoPyO3:mainfrom
Icxolu:raw-references
Mar 14, 2026
Merged

use raw references instead of addr_of! / addr_of_mut!#5879
Icxolu merged 1 commit intoPyO3:mainfrom
Icxolu:raw-references

Conversation

@Icxolu
Copy link
Copy Markdown
Member

@Icxolu Icxolu commented Mar 14, 2026

Closes #5846

@Icxolu Icxolu added the CI-skip-changelog Skip checking changelog entry label Mar 14, 2026
Comment thread pyo3-ffi/examples/sequential/src/lib.rs Outdated
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Mar 14, 2026

Merging this PR will improve performance by 28.2%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 2 improved benchmarks
✅ 103 untouched benchmarks
⏩ 1 skipped benchmark1

Performance Changes

Benchmark BASE HEAD Efficiency
format_simple 397.8 ns 310.3 ns +28.2%
critical_section_creation 703.1 ns 615.6 ns +14.21%

Comparing Icxolu:raw-references (571ec6a) with main (7aa6163)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports.

@Icxolu Icxolu added this pull request to the merge queue Mar 14, 2026
Merged via the queue into PyO3:main with commit d07a1ab Mar 14, 2026
44 of 45 checks passed
@Icxolu Icxolu deleted the raw-references branch March 14, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI-skip-changelog Skip checking changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace addr_of! / addr_of_mut! with &raw const / &raw mut

3 participants