Title: Improved str.count() algorithm using the Knuth-Morris-Pratt algorithm by advikkabra · Pull Request #2530 · lcompilers/lpython · GitHub
Open Graph Title: Improved str.count() algorithm using the Knuth-Morris-Pratt algorithm by advikkabra · Pull Request #2530 · lcompilers/lpython
X Title: Improved str.count() algorithm using the Knuth-Morris-Pratt algorithm by advikkabra · Pull Request #2530 · lcompilers/lpython
Description: Implemented the Knuth-Morris-Pratt algorithm for str.count(), similar to the str.find() implementation. This should improve speed significantly in many cases.
Open Graph Description: Implemented the Knuth-Morris-Pratt algorithm for str.count(), similar to the str.find() implementation. This should improve speed significantly in many cases.
X Description: Implemented the Knuth-Morris-Pratt algorithm for str.count(), similar to the str.find() implementation. This should improve speed significantly in many cases.
Opengraph URL: https://github.com/lcompilers/lpython/pull/2530
X: @github
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:ab9705dc-c2e3-9710-e4b7-9690679b0bc3 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8076:2B1AB1:323571B:420B236:696B8D46 |
| html-safe-nonce | cac24a341acf5f8a9be3da922ee1bd443158f317a79a0fb9c6f9f0f64bb3e3e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDc2OjJCMUFCMTozMjM1NzFCOjQyMEIyMzY6Njk2QjhENDYiLCJ2aXNpdG9yX2lkIjoiMjg2MzUyODkxOTM0MTY5ODM3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 68c6bde34156f81ce4a193458bc69551cf02e26e5c98f57248d215aad57d2089 |
| hovercard-subject-tag | pull_request:1722549569 |
| 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/_view_fragments/voltron/pull_requests/show/lcompilers/lpython/2530/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/dc54bb35574207e732c195acfac9794e3efdff01be29d3bb35202635bcd1ec8f/lcompilers/lpython/pull/2530 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dc54bb35574207e732c195acfac9794e3efdff01be29d3bb35202635bcd1ec8f/lcompilers/lpython/pull/2530 |
| og:image:alt | Implemented the Knuth-Morris-Pratt algorithm for str.count(), similar to the str.find() implementation. This should improve speed significantly in many cases. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | advikkabra |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/lcompilers/lpython git https://github.com/lcompilers/lpython.git |
| octolytics-dimension-user_id | 96538276 |
| octolytics-dimension-user_login | lcompilers |
| octolytics-dimension-repository_id | 442864346 |
| octolytics-dimension-repository_nwo | lcompilers/lpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 442864346 |
| octolytics-dimension-repository_network_root_nwo | lcompilers/lpython |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width