Title: Speedup String#{ indexOf, lastIndexOf } by MaxGraey · Pull Request #2649 · AssemblyScript/assemblyscript · GitHub
Open Graph Title: Speedup String#{ indexOf, lastIndexOf } by MaxGraey · Pull Request #2649 · AssemblyScript/assemblyscript
X Title: Speedup String#{ indexOf, lastIndexOf } by MaxGraey · Pull Request #2649 · AssemblyScript/assemblyscript
Description: This speedup indexOf matching, especially for long strings and single character. Benchmark results: Old - SAMPLE22_0:ok: 69.700 ms - SAMPLE22_0:eof: 49.000 ms - SAMPLE63_1:ok: 90.700 ms - SAMPLE63_1:eof: 87.200 ms - SAMPLE1k_h:ok: 345.100 ms - SAMPLE1k_h:eof: 723.800 ms New - SAMPLE22_0:ok: 40.600 ms (~1.7x) - SAMPLE22_0:eof: 39.400 ms (~1.3x) - SAMPLE63_1:ok: 64.900 ms (~1.4x) - SAMPLE63_1:eof: 54.900 ms (~1.6x) - SAMPLE1k_h:ok: 318.900 ms (~1.0x) - SAMPLE1k_h:eof: 350.800 ms (~2.0x) Benchmark Playground: https://tinyurl.com/pjftv9pp I've read the contributing guidelines I've added my name and email to the NOTICE file
Open Graph Description: This speedup indexOf matching, especially for long strings and single character. Benchmark results: Old - SAMPLE22_0:ok: 69.700 ms - SAMPLE22_0:eof: 49.000 ms - SAMPLE63_1:ok: 90.700 ms - SAM...
X Description: This speedup indexOf matching, especially for long strings and single character. Benchmark results: Old - SAMPLE22_0:ok: 69.700 ms - SAMPLE22_0:eof: 49.000 ms - SAMPLE63_1:ok: 90.700 ms - SAM...
Opengraph URL: https://github.com/AssemblyScript/assemblyscript/pull/2649
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:a5a1fc08-15c6-0f28-48ba-df102f389e27 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | A51A:3C8A20:8ABD23A:B946C41:696E1B1A |
| html-safe-nonce | 477a9adf64b3c0d2fa1f3bf5cc473da780ce2ca392a953185ec32e1cbbd7fd59 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTFBOjNDOEEyMDo4QUJEMjNBOkI5NDZDNDE6Njk2RTFCMUEiLCJ2aXNpdG9yX2lkIjoiNjg0NzE4NTY1ODYzODU2OTIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cdff1d1a9c68b9b6cc062be2d2b628ce705f78d7a3b9c0e0b3fdcea83d44c3bd |
| hovercard-subject-tag | pull_request:1239502157 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/AssemblyScript/assemblyscript/pull/2649/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1301959?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1301959?s=400&v=4 |
| og:image:alt | This speedup indexOf matching, especially for long strings and single character. Benchmark results: Old - SAMPLE22_0:ok: 69.700 ms - SAMPLE22_0:eof: 49.000 ms - SAMPLE63_1:ok: 90.700 ms - SAM... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 113cc336e7105fbb9f2ee8beb67c6cc584d65fa66a8a1a5dd236ba66db174af7 |
| turbo-cache-control | no-preview |
| go-import | github.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git |
| octolytics-dimension-user_id | 28916798 |
| octolytics-dimension-user_login | AssemblyScript |
| octolytics-dimension-repository_id | 105138356 |
| octolytics-dimension-repository_nwo | AssemblyScript/assemblyscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 105138356 |
| octolytics-dimension-repository_network_root_nwo | AssemblyScript/assemblyscript |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d23f8b0bc31294c6a73ba2f3adfdd8c7052ca1e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width