Title: Implement import completion cache · Issue #861 · bpython/bpython · GitHub
Open Graph Title: Implement import completion cache · Issue #861 · bpython/bpython
X Title: Implement import completion cache · Issue #861 · bpython/bpython
Description: Steps to reproduce Change current directory to directory containing big sub-tree (ie. system root directory). start bpython executable observe high CPU usage in processor monitor / manager. Affected versions 0.19 and above Detailed Descr...
Open Graph Description: Steps to reproduce Change current directory to directory containing big sub-tree (ie. system root directory). start bpython executable observe high CPU usage in processor monitor / manager. Affecte...
X Description: Steps to reproduce Change current directory to directory containing big sub-tree (ie. system root directory). start bpython executable observe high CPU usage in processor monitor / manager. Affecte...
Opengraph URL: https://github.com/bpython/bpython/issues/861
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implement import completion cache","articleBody":"## Steps to reproduce\r\n1. Change current directory to directory containing big sub-tree (ie. system root directory).\r\n2. start bpython executable\r\n3. observe high CPU usage in processor monitor / manager.\r\n\r\n## Affected versions\r\n0.19 and above\r\n\r\n## Detailed Description\r\nThis problem started after 1a674f00311523558d627eb333409afc6cfe0865. It seems that new `find modules` implementation based on `importlib.machinery.FileFinder` is much slower than previous one.\r\n\r\nShould bpython traverse whole sub-tree on each startup? Quite often I do start it from my home directory and traversing all it's contents including mounted remote filesystems seems wasteful.","author":{"url":"https://github.com/xvuko","@type":"Person","name":"xvuko"},"datePublished":"2020-11-09T15:58:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/861/bpython/issues/861"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9099d888-e9a1-3b2c-384d-a1fb59f1904c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD62:3CDC4B:D88FFE:1291BD9:6968A005 |
| html-safe-nonce | b63d5fe66c26805d645a9f0b7c48f76d5e147dae93d21a28f1ff5d75d11ad797 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDYyOjNDREM0QjpEODhGRkU6MTI5MUJEOTo2OTY4QTAwNSIsInZpc2l0b3JfaWQiOiIyODc3NzA0NzQ2NjY0NzYzMzk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d7435c3468c263427c4217e560a886380f11317f21e8c1fc5058e5c04fd2745e |
| hovercard-subject-tag | issue:739150608 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/bpython/bpython/861/issue_layout |
| twitter:image | https://opengraph.githubassets.com/14318786681b0907117e066e83591cd80ed5aaf9f259c773be414e63149a79c3/bpython/bpython/issues/861 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/14318786681b0907117e066e83591cd80ed5aaf9f259c773be414e63149a79c3/bpython/bpython/issues/861 |
| og:image:alt | Steps to reproduce Change current directory to directory containing big sub-tree (ie. system root directory). start bpython executable observe high CPU usage in processor monitor / manager. Affecte... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xvuko |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdc7c66bd36a6c12eb8e771e806db863266e573fc299e77f27505a768d4f8a98 |
| turbo-cache-control | no-preview |
| go-import | github.com/bpython/bpython git https://github.com/bpython/bpython.git |
| octolytics-dimension-user_id | 8071396 |
| octolytics-dimension-user_login | bpython |
| octolytics-dimension-repository_id | 21508865 |
| octolytics-dimension-repository_nwo | bpython/bpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21508865 |
| octolytics-dimension-repository_network_root_nwo | bpython/bpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3223a6503d318917691422cdadfbe16cd8fb21e5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width