Title: PythonEngine.Initialize slow · Issue #598 · pythonnet/pythonnet · GitHub
Open Graph Title: PythonEngine.Initialize slow · Issue #598 · pythonnet/pythonnet
X Title: PythonEngine.Initialize slow · Issue #598 · pythonnet/pythonnet
Description: Environment Pythonnet version: 2.3.0 Python version: 3.6 Operating System: Windows 7 Details When embedding Python in an ASP.NET MVC 5 web application, PythonEngine.Initialize needs a couple of seconds to eagerly load the names of around...
Open Graph Description: Environment Pythonnet version: 2.3.0 Python version: 3.6 Operating System: Windows 7 Details When embedding Python in an ASP.NET MVC 5 web application, PythonEngine.Initialize needs a couple of sec...
X Description: Environment Pythonnet version: 2.3.0 Python version: 3.6 Operating System: Windows 7 Details When embedding Python in an ASP.NET MVC 5 web application, PythonEngine.Initialize needs a couple of sec...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/598
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PythonEngine.Initialize slow","articleBody":"### Environment\r\n\r\n- Pythonnet version: 2.3.0\r\n- Python version: 3.6\r\n- Operating System: Windows 7\r\n\r\n### Details\r\n\r\nWhen embedding Python in an ASP.NET MVC 5 web application, PythonEngine.Initialize needs a couple of seconds to eagerly load the names of around 50 module namespaces in ModuleObject.LoadNames. If I replace the implementation of LoadNames with a NOP, time spent in PythonEngine.Initialize drops to below 100 ms and the web application still seems to work.\r\n\r\n","author":{"url":"https://github.com/goerch","@type":"Person","name":"goerch"},"datePublished":"2018-01-14T17:41:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/598/pythonnet/issues/598"}
| 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:36b5a6bd-1350-ed44-3d13-991b8b15767d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A354:66A35:3ABA005:4F29858:6971F614 |
| html-safe-nonce | 883ede3a4e2874912f93e081fcaa777279f441df99830489e2b1e27139a7e82d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzU0OjY2QTM1OjNBQkEwMDU6NEYyOTg1ODo2OTcxRjYxNCIsInZpc2l0b3JfaWQiOiIzOTI1NzI3MDc4MTM2MjgwNTk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 64e381ade5825e4821764b39d7a93dbc9532aa9c9a3d732ecc4703cc938809b3 |
| hovercard-subject-tag | issue:288425623 |
| 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/pythonnet/pythonnet/598/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d6f84ce197359688b88348b2da8b011be5065704ca33171a5c9e06cc05790e37/pythonnet/pythonnet/issues/598 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d6f84ce197359688b88348b2da8b011be5065704ca33171a5c9e06cc05790e37/pythonnet/pythonnet/issues/598 |
| og:image:alt | Environment Pythonnet version: 2.3.0 Python version: 3.6 Operating System: Windows 7 Details When embedding Python in an ASP.NET MVC 5 web application, PythonEngine.Initialize needs a couple of sec... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | goerch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d9da1aa47d387dfb2aca0f2e5c19150dc936b8128a6b2ecd6a02fc26a378fff |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| 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 | 4332d3e3368b9bce3dfd3c4a2643112933072734 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width