Title: Reduce number of string clones when compiling python source code by ShaharNaveh · Pull Request #8103 · RustPython/RustPython · GitHub
Open Graph Title: Reduce number of string clones when compiling python source code by ShaharNaveh · Pull Request #8103 · RustPython/RustPython
X Title: Reduce number of string clones when compiling python source code by ShaharNaveh · Pull Request #8103 · RustPython/RustPython
Description: Closes #xxxx This PR follows our AI policy Summary Summary by CodeRabbit Refactor Optimized how source names and paths are passed during compilation and execution to avoid unnecessary string allocations across the runtime, standard library integration, examples, and benchmarks. Updated relevant VM APIs and related call sites to accept borrowed &str for source path/name parameters, plus a small cleanup of related string/Latin-1 cache initialization and test compilation helpers.
Open Graph Description: Closes #xxxx This PR follows our AI policy Summary Summary by CodeRabbit Refactor Optimized how source names and paths are passed during compilation and execution to avoid unnecessary string...
X Description: Closes #xxxx This PR follows our AI policy Summary Summary by CodeRabbit Refactor Optimized how source names and paths are passed during compilation and execution to avoid unnecessary string...
Opengraph URL: https://github.com/RustPython/RustPython/pull/8103
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b2a1cda1-0796-f6a9-e44b-8cf0a5207619 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CC1E:35CFD7:45EA9D:5D7C34:6A5ED598 |
| html-safe-nonce | 39d939f670e18c27a71478efc0f5a8b3220690c86d276d3adcc3a623b41b592d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzFFOjM1Q0ZENzo0NUVBOUQ6NUQ3QzM0OjZBNUVENTk4IiwidmlzaXRvcl9pZCI6IjIzMzE0MjY0OTQ3OTgwMjYxMzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8c1653462cb7ba789819c12dc16a4640e5f29ad040cbaa90ac6b58cc4a73b93e |
| hovercard-subject-tag | pull_request:3862611643 |
| 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/8103/files |
| twitter:image | https://avatars.githubusercontent.com/u/50263213?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/50263213?s=400&v=4 |
| og:image:alt | Closes #xxxx This PR follows our AI policy Summary Summary by CodeRabbit Refactor Optimized how source names and paths are passed during compilation and execution to avoid unnecessary string... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 82d0004a35927bdb00c652a57f456c55aa0eda4ade1bc7956d7510fdea6e454b |
| 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 | d2d913dd727d2d7ac189fb4d05b10bc34ecd03ee |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width