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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:59bc2843-a3bb-3f93-b1b9-07e61323f872 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 8508:27B1FA:E5BF1D:12EBAB3:696B6329 |
| html-safe-nonce | 93ca529755c978dcdf228351dad29173c6575f66194ccbb758e76f2cabfcfa5d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTA4OjI3QjFGQTpFNUJGMUQ6MTJFQkFCMzo2OTZCNjMyOSIsInZpc2l0b3JfaWQiOiI2MzEyMzU4OTY3NjQ4MTUwMzEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | eadce3be69e3532789b128bd48dc129f00d52d496eaeaf488a40176c3aca2f1e |
| hovercard-subject-tag | pull_request:2794442202 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-cache |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width