Title: Question regarding the use of binary search in mrbc_hash_search · Issue #253 · mrubyc/mrubyc · GitHub
Open Graph Title: Question regarding the use of binary search in mrbc_hash_search · Issue #253 · mrubyc/mrubyc
X Title: Question regarding the use of binary search in mrbc_hash_search · Issue #253 · mrubyc/mrubyc
Description: Wouldn't binary search be faster for mrbc_hash_search? To clarify, this is a technical discussion and not a formal feature request. If it is determined that this should be implemented, I am happy to write the code and submit a pull reque...
Open Graph Description: Wouldn't binary search be faster for mrbc_hash_search? To clarify, this is a technical discussion and not a formal feature request. If it is determined that this should be implemented, I am happy t...
X Description: Wouldn't binary search be faster for mrbc_hash_search? To clarify, this is a technical discussion and not a formal feature request. If it is determined that this should be implemented, I am hap...
Opengraph URL: https://github.com/mrubyc/mrubyc/issues/253
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Question regarding the use of binary search in mrbc_hash_search","articleBody":"Wouldn't binary search be faster for mrbc_hash_search?\n\nTo clarify, this is a technical discussion and not a formal feature request. If it is determined that this should be implemented, I am happy to write the code and submit a pull request myself.\n\nReference code: https://github.com/mrubyc/mrubyc/blob/master/src/c_hash.c#L123\n\nRegarding the code above, it seems to me that we could use binary search if we perform an insertion sort when adding new keys in mrbc_hash_set. Are there specific trade-offs for this use case—such as linear search being more cost-effective during access—that I might be overlooking?\n","author":{"url":"https://github.com/kmt-t","@type":"Person","name":"kmt-t"},"datePublished":"2026-01-25T18:52:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/253/mrubyc/issues/253"}
| 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:39d7bdbb-180a-fa25-e363-136a7d2e3eb6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D5BC:176908:2ECA45:3E8B11:698EE427 |
| html-safe-nonce | 785b15e0ce5e4010bc3c22a6b0e1aa41f713ab04981f4c4589c327e3fee7eb60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUJDOjE3NjkwODoyRUNBNDU6M0U4QjExOjY5OEVFNDI3IiwidmlzaXRvcl9pZCI6IjY0NjIwODQyNDYzMDMzMzU0NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 913c230833d211ed66eb855e480ae8e3faf96c4c62f702bda70eea3d1c91348f |
| hovercard-subject-tag | issue:3853699998 |
| 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/mrubyc/mrubyc/253/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2b58b476d6cdb85ae4b7fce8a4252bb8b8c524332b1c573820560d978d86bf79/mrubyc/mrubyc/issues/253 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2b58b476d6cdb85ae4b7fce8a4252bb8b8c524332b1c573820560d978d86bf79/mrubyc/mrubyc/issues/253 |
| og:image:alt | Wouldn't binary search be faster for mrbc_hash_search? To clarify, this is a technical discussion and not a formal feature request. If it is determined that this should be implemented, I am happy t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kmt-t |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/mrubyc/mrubyc git https://github.com/mrubyc/mrubyc.git |
| octolytics-dimension-user_id | 17872973 |
| octolytics-dimension-user_login | mrubyc |
| octolytics-dimension-repository_id | 54011776 |
| octolytics-dimension-repository_nwo | mrubyc/mrubyc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 54011776 |
| octolytics-dimension-repository_network_root_nwo | mrubyc/mrubyc |
| 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 | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width