Title: Vectorize update() · Issue #21 · apache/datasketches-python · GitHub
Open Graph Title: Vectorize update() · Issue #21 · apache/datasketches-python
X Title: Vectorize update() · Issue #21 · apache/datasketches-python
Description: Looping in python is slow. We should enable update() with multiple inputs where C++ handles the iteration, for all sketches. For sketches that take primitive types this is simple and can be done by overloading update(). For item containe...
Open Graph Description: Looping in python is slow. We should enable update() with multiple inputs where C++ handles the iteration, for all sketches. For sketches that take primitive types this is simple and can be done by...
X Description: Looping in python is slow. We should enable update() with multiple inputs where C++ handles the iteration, for all sketches. For sketches that take primitive types this is simple and can be done by...
Opengraph URL: https://github.com/apache/datasketches-python/issues/21
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Vectorize update()","articleBody":"Looping in python is slow. We should enable `update()` with multiple inputs where C++ handles the iteration, for all sketches.\r\n\r\nFor sketches that take primitive types this is simple and can be done by overloading `update()`. For item containers it may be less straightforward since a list is a type of object, meaning an overloaded may treat the list as a single thing to ingest.\r\n\r\nIIRC, the wrappers (both pybind11 and nanobind) iterate through the possible methods in the order ini which they were declared in the wrapper definition, which is not good for API design: Lack of transparency, internal rearranging of code can cause side-effects, etc. So we probably need a different method name. Then we run into the question of whether we should use an overload where practical and a different name where necessary or if we go for more consistency.","author":{"url":"https://github.com/jmalkin","@type":"Person","name":"jmalkin"},"datePublished":"2023-12-08T19:00:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/21/datasketches-python/issues/21"}
| 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:6e91ab66-478a-c608-03de-ef9675ff919d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 979E:3E9CDE:32B304:463E0E:698DEE3B |
| html-safe-nonce | 4bb63755de1ebc5d8c458ad27e595366cbcc85b0a6cdea7a03a3ceaf7a1e369a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzlFOjNFOUNERTozMkIzMDQ6NDYzRTBFOjY5OERFRTNCIiwidmlzaXRvcl9pZCI6IjI0NzA2NDE1NzE4NTIwNTQwNzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | feabb6c5911c92544e8f5ee61b772a2d906268440722485df59cbb94df9cbad5 |
| hovercard-subject-tag | issue:2033168039 |
| 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/apache/datasketches-python/21/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2306faa2b1bad5c0ec5b78111f8c54cf4b314187aa40cd1364c446fef1b87f0c/apache/datasketches-python/issues/21 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2306faa2b1bad5c0ec5b78111f8c54cf4b314187aa40cd1364c446fef1b87f0c/apache/datasketches-python/issues/21 |
| og:image:alt | Looping in python is slow. We should enable update() with multiple inputs where C++ handles the iteration, for all sketches. For sketches that take primitive types this is simple and can be done by... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jmalkin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 929d0ce8b653d60df0698366d7e9012f9423ea1bace40816e16e5b007242aae4 |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/datasketches-python git https://github.com/apache/datasketches-python.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 685709717 |
| octolytics-dimension-repository_nwo | apache/datasketches-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 685709717 |
| octolytics-dimension-repository_network_root_nwo | apache/datasketches-python |
| 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 | 143e58641f5eb460a02eda3a18cc1ef28e8c5188 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width