Title: Add __slots__ to library objects · Issue #1109 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: Add __slots__ to library objects · Issue #1109 · python-telegram-bot/python-telegram-bot
X Title: Add __slots__ to library objects · Issue #1109 · python-telegram-bot/python-telegram-bot
Description: We have many classes in the library. Bots use a lot of memory. Let's add __slots__ to the classes where they make sense. More info on what __slots__ are: https://stackoverflow.com/questions/472000/usage-of-slots?utm_medium=organic&utm_so...
Open Graph Description: We have many classes in the library. Bots use a lot of memory. Let's add __slots__ to the classes where they make sense. More info on what __slots__ are: https://stackoverflow.com/questions/472000/...
X Description: We have many classes in the library. Bots use a lot of memory. Let's add __slots__ to the classes where they make sense. More info on what __slots__ are: https://stackoverflow.com/questions/472...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/1109
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add __slots__ to library objects","articleBody":"We have many classes in the library. Bots use a lot of memory.\r\nLet's add `__slots__` to the classes where they make sense.\r\n\r\nMore info on what `__slots__` are: https://stackoverflow.com/questions/472000/usage-of-slots?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa\r\n\r\nWe have to consider **where it actually makes sense**:\r\n- Let's find out candidates where users are likely to monkey patch their own attributes on library objects. These should not receive slots as it would break existing code bases.\r\n- Which objects are so big that we would like to benefit from `__slot__` 's performance boosts nonetheless?\r\n\r\nPlease list candidates in the comments.","author":{"url":"https://github.com/JosXa","@type":"Person","name":"JosXa"},"datePublished":"2018-05-10T11:28:35Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/1109"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:8dbaaff0-494e-1ba8-c738-483576812087 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86C4:ED130:534BC:69FCB:6B027F54 |
| html-safe-nonce | 52d081a3301a7873cdf07ab7854dac3a55f404dea2dc8173b434fe01b3cfdff6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkM0OkVEMTMwOjUzNEJDOjY5RkNCOjZCMDI3RjU0IiwidmlzaXRvcl9pZCI6Ijc5NDY1NTE1ODUyMzA5Nzg5MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e9c5c4655bd5621a5f8799cb04190461ffb351cb9101035e4d0572850b4d3f54 |
| hovercard-subject-tag | issue:321899540 |
| 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/python-telegram-bot/python-telegram-bot/1109/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e63048f1826bba6b7acda8f081f1ea64be15e316211bd858f9eb3ffc352d0cd8/python-telegram-bot/python-telegram-bot/issues/1109 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e63048f1826bba6b7acda8f081f1ea64be15e316211bd858f9eb3ffc352d0cd8/python-telegram-bot/python-telegram-bot/issues/1109 |
| og:image:alt | We have many classes in the library. Bots use a lot of memory. Let's add __slots__ to the classes where they make sense. More info on what __slots__ are: https://stackoverflow.com/questions/472000/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JosXa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-telegram-bot/python-telegram-bot git https://github.com/python-telegram-bot/python-telegram-bot.git |
| octolytics-dimension-user_id | 16178365 |
| octolytics-dimension-user_login | python-telegram-bot |
| octolytics-dimension-repository_id | 38696925 |
| octolytics-dimension-repository_nwo | python-telegram-bot/python-telegram-bot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38696925 |
| octolytics-dimension-repository_network_root_nwo | python-telegram-bot/python-telegram-bot |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width