Title: Switch to newer thread::LocalKey convenience methods by coolreader18 · Pull Request #6123 · RustPython/RustPython · GitHub
Open Graph Title: Switch to newer thread::LocalKey convenience methods by coolreader18 · Pull Request #6123 · RustPython/RustPython
X Title: Switch to newer thread::LocalKey convenience methods by coolreader18 · Pull Request #6123 · RustPython/RustPython
Description: This branch has been sitting around in my local checkout for a while, and I was finally reminded of it today. THREAD_LOCAL.with(|x: &RefCell<_>| x.borrow_mut().foo()) -> THREAD_LOCAL.with_borrow_mut(|x: &mut _| x.foo()), since Rust 1.73. Summary by CodeRabbit Release Notes Dependencies Added new dependencies: scoped-tls and scopeguard Performance and Optimization Improved internal thread-local storage and context management mechanisms Refined borrow patterns across multiple modules for more efficient resource handling Technical Improvements Updated VM thread management and context variable handling Simplified thread-local storage access patterns Enhanced WASM virtual machine initialization and management Maintenance Minor refactoring of internal implementation details No changes to public API surfaces Note: These changes primarily focus on internal infrastructure improvements.
Open Graph Description: This branch has been sitting around in my local checkout for a while, and I was finally reminded of it today. THREAD_LOCAL.with(|x: &RefCell<_>| x.borrow_mut().foo()) -> THREAD_LOCAL.w...
X Description: This branch has been sitting around in my local checkout for a while, and I was finally reminded of it today. THREAD_LOCAL.with(|x: &RefCell<_>| x.borrow_mut().foo()) ->...
Opengraph URL: https://github.com/RustPython/RustPython/pull/6123
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b37d3586-3b62-5614-9a15-7c3d442f29c5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CB36:2D4000:1934ED3:231C8A9:696A4E5B |
| html-safe-nonce | e784b5f3e3f56b70d9b46770219f1f6097833b59ebdc3c8ba9c36a4b5754ff37 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjM2OjJENDAwMDoxOTM0RUQzOjIzMUM4QTk6Njk2QTRFNUIiLCJ2aXNpdG9yX2lkIjoiNzk2MzE2MTc0ODQ1MTI0OTc1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a42f24d1abc9ac7564d13e5d4fd242138efb0c625a1c545ab63e4d3bbdfcfdec |
| hovercard-subject-tag | pull_request:2794442202 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/6123/files |
| twitter:image | https://avatars.githubusercontent.com/u/33094578?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/33094578?s=400&v=4 |
| og:image:alt | This branch has been sitting around in my local checkout for a while, and I was finally reminded of it today. THREAD_LOCAL.with(|x: &RefCell<_>| x.borrow_mut().foo()) -> THREAD_LOCAL.w... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width