René's URL Explorer Experiment


Title: [std] Improve string hashing by MaxGraey · Pull Request #1579 · AssemblyScript/assemblyscript · GitHub

Open Graph Title: [std] Improve string hashing by MaxGraey · Pull Request #1579 · AssemblyScript/assemblyscript

X Title: [std] Improve string hashing by MaxGraey · Pull Request #1579 · AssemblyScript/assemblyscript

Description: A TypeScript-like language for WebAssembly. Contribute to AssemblyScript/assemblyscript development by creating an account on GitHub.

Open Graph Description: Benchmark: old str hash: 221.40000015497208 ms new str hash: 186.04000005871058 ms playground I've read the contributing guidelines

X Description: Benchmark: old str hash: 221.40000015497208 ms new str hash: 186.04000005871058 ms playground I've read the contributing guidelines

Opengraph URL: https://github.com/AssemblyScript/assemblyscript/pull/1579

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:0ccadd10-9d28-f5be-c9a2-97915e2684b8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCE28:FA1B4:7E9449:AE8689:6B009E1E
html-safe-nonce4c304b9565576379fc03f361818b13226d73ed64b6ee45376b3d0693fa439a5d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTI4OkZBMUI0OjdFOTQ0OTpBRTg2ODk6NkIwMDlFMUUiLCJ2aXNpdG9yX2lkIjoiNzgyMTA3NTA4NjM0MDgyNDYwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac64625ad7b3bb4efa0a1e95f0a1eedb9366d1d975d59bcb503b7667ecf2187859
hovercard-subject-tagpull_request:539068449
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/AssemblyScript/assemblyscript/1579/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/6506ed213841d77367d937e18a0bf8465e6c941ee5577d04ff90fc6946136c98/AssemblyScript/assemblyscript/pull/1579
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6506ed213841d77367d937e18a0bf8465e6c941ee5577d04ff90fc6946136c98/AssemblyScript/assemblyscript/pull/1579
og:image:altBenchmark: old str hash: 221.40000015497208 ms new str hash: 186.04000005871058 ms playground I've read the contributing guidelines
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMaxGraey
hostnamegithub.com
expected-hostnamegithub.com
None52c95ce7e48016ae14399656b4ee812462b6f1fa28c5008c8394da64794c00b8
turbo-cache-controlno-cache
go-importgithub.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git
octolytics-dimension-user_id28916798
octolytics-dimension-user_loginAssemblyScript
octolytics-dimension-repository_id105138356
octolytics-dimension-repository_nwoAssemblyScript/assemblyscript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id105138356
octolytics-dimension-repository_network_root_nwoAssemblyScript/assemblyscript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1c9ddec8215f9a94e295c8310c3579b9c54ba31a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/AssemblyScript/assemblyscript/pull/1579#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAssemblyScript%2Fassemblyscript%2Fpull%2F1579
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAssemblyScript%2Fassemblyscript%2Fpull%2F1579
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=AssemblyScript%2Fassemblyscript
Reloadhttps://github.com/AssemblyScript/assemblyscript/pull/1579
Reloadhttps://github.com/AssemblyScript/assemblyscript/pull/1579
Reloadhttps://github.com/AssemblyScript/assemblyscript/pull/1579
AssemblyScripthttps://github.com/AssemblyScript
assemblyscripthttps://github.com/AssemblyScript/assemblyscript
Codehttps://github.com/AssemblyScript/assemblyscript
Issues196 (196)https://github.com/AssemblyScript/assemblyscript/issues
Pull requests24 (24)https://github.com/AssemblyScript/assemblyscript/pulls
Actionshttps://github.com/AssemblyScript/assemblyscript/actions
Wikihttps://github.com/AssemblyScript/assemblyscript/wiki
Security and qualityhttps://github.com/AssemblyScript/assemblyscript/security
Insightshttps://github.com/AssemblyScript/assemblyscript/insights
https://github.com/AssemblyScript/assemblyscript
MaxGraeyhttps://github.com/MaxGraey
AssemblyScript:masterhttps://github.com/AssemblyScript/assemblyscript/tree/master
Conversationhttps://github.com/AssemblyScript/assemblyscript/pull/1579
Commits3 (3)https://github.com/AssemblyScript/assemblyscript/pull/1579/commits
Checkshttps://github.com/AssemblyScript/assemblyscript/pull/1579/checks
Files changedhttps://github.com/AssemblyScript/assemblyscript/pull/1579/files
[std] Improve string hashinghttps://github.com/AssemblyScript/assemblyscript/pull/1579#top
MaxGraeyhttps://github.com/MaxGraey
AssemblyScript:masterhttps://github.com/AssemblyScript/assemblyscript/tree/master
https://github.com/MaxGraey
MaxGraeyhttps://github.com/MaxGraey
Dec 14, 2020https://github.com/AssemblyScript/assemblyscript/pull/1579#issue-765758125
Please reload this pagehttps://github.com/AssemblyScript/assemblyscript/pull/1579
playgroundhttps://www.assemblyscript.org/editor.html#IyFvcHRpbWl6ZT1zcGVlZCZydW50aW1lPW5vbmUmbm9Bc3NlcnQKaW1wb3J0IHsgSEFTSCB9IGZyb20gInV0aWwvaGFzaCI7CgovLyBAdHMtaWdub3JlOiBkZWNvcmF0b3IKQGlubGluZSBjb25zdCBGTlZfT0ZGU0VUOiB1MzIgPSAyMTY2MTM2MjYxOwoKLy8gQHRzLWlnbm9yZTogZGVjb3JhdG9yCkBpbmxpbmUgY29uc3QgRk5WX1BSSU1FOiB1MzIgPSAxNjc3NzYxOTsKCi8vIEB0cy1pZ25vcmU6IGRlY29yYXRvcgpAaW5saW5lCmZ1bmN0aW9uIGhhc2gxNihrZXk6IHUzMiwgc2VlZDogdTMyID0gRk5WX09GRlNFVCk6IHUzMiB7CiAgdmFyIHYgPSBzZWVkOwogIHYgPSAodiBeICgga2V5ICAgICAgICAmIDB4ZmYpKSAqIEZOVl9QUklNRTsKICB2ID0gKHYgXiAoIGtleSA+PiAgOCAgICAgICAgKSkgKiBGTlZfUFJJTUU7CiAgcmV0dXJuIHY7Cn0KCi8vIEB0cy1pZ25vcmU6IGRlY29yYXRvcgpAaW5saW5lCmZ1bmN0aW9uIGhhc2gzMihrZXk6IHUzMiwgc2VlZDogdTMyID0gRk5WX09GRlNFVCk6IHUzMiB7CiAgdmFyIHYgPSBzZWVkOwogIHYgPSAodiBeICgga2V5ICAgICAgICAmIDB4ZmYpKSAqIEZOVl9QUklNRTsKICB2ID0gKHYgXiAoKGtleSA+PiAgOCkgJiAweGZmKSkgKiBGTlZfUFJJTUU7CiAgdiA9ICh2IF4gKChrZXkgPj4gMTYpICYgMHhmZikpICogRk5WX1BSSU1FOw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20sIHsgLyogaW1wb3J0cyAqLyB9KQogIC50aGVuKCh7IGV4cG9ydHMgfSkgPT4gewogICAgY29uc3Qgb3V0cHV0ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ291dHB1dCcpOwogICAgbGV0IHQgPSAwOwoKICAgIHQgPSBwZXJmb3JtYW5jZS5ub3coKTsKICAgIGV4cG9ydHMuYmVuY2hPbGQoKTsKICAgIHQgPSBwZXJmb3JtYW5jZS5ub3coKSAtIHQ7CiAgICBvdXRwdXQudmFsdWUgKz0gJ29sZCBzdHIgaGFzaDogJyArIHQgKyAnIG1zXG4nOwoKICAgIHQgPSBwZXJmb3JtYW5jZS5ub3coKTsKICAgIGV4cG9ydHMuYmVuY2hOZXcoKTsKICAgIHQgPSBwZXJmb3JtYW5jZS5ub3coKSAtIHQ7CiAgICBvdXRwdXQudmFsdWUgKz0gJ25ldyBzdHIgaGFzaDogJyArIHQgKyAnIG1zJzsKICB9KQo8L3NjcmlwdD4=
Please reload this pagehttps://github.com/AssemblyScript/assemblyscript/pull/1579
https://github.com/MaxGraey
improve string hashinghttps://github.com/AssemblyScript/assemblyscript/pull/1579/commits/09e622824417e2c1928282558bc05fd64ccab633
09e6228https://github.com/AssemblyScript/assemblyscript/pull/1579/commits/09e622824417e2c1928282558bc05fd64ccab633
https://github.com/MaxGraey
MaxGraeyhttps://github.com/MaxGraey
dcodeIOhttps://github.com/dcodeIO
December 14, 2020 01:25https://github.com/AssemblyScript/assemblyscript/pull/1579#event-4106733674
https://github.com/MaxGraey
MaxGraeyhttps://github.com/MaxGraey
enhancement https://github.com/AssemblyScript/assemblyscript/issues?q=state%3Aopen%20label%3Aenhancement
performance https://github.com/AssemblyScript/assemblyscript/issues?q=state%3Aopen%20label%3Aperformance
standard library https://github.com/AssemblyScript/assemblyscript/issues?q=state%3Aopen%20label%3A%22standard%20library%22
Dec 14, 2020https://github.com/AssemblyScript/assemblyscript/pull/1579#event-4106734139
MaxGraeyhttps://github.com/MaxGraey
December 14, 2020 03:31https://github.com/AssemblyScript/assemblyscript/pull/1579#commits-pushed-9b16011
https://github.com/MaxGraey
fix commenthttps://github.com/AssemblyScript/assemblyscript/pull/1579/commits/9b16011b81e747931785d08962900f43235816a6
9b16011https://github.com/AssemblyScript/assemblyscript/pull/1579/commits/9b16011b81e747931785d08962900f43235816a6
https://github.com/MaxGraey
remove unnecessary ops in last branchhttps://github.com/AssemblyScript/assemblyscript/pull/1579/commits/4a47a7ef4a186d172ac413106d3e9116b7fda5aa
4a47a7ehttps://github.com/AssemblyScript/assemblyscript/pull/1579/commits/4a47a7ef4a186d172ac413106d3e9116b7fda5aa
https://github.com/MaxGraey
MaxGraeyhttps://github.com/MaxGraey
Dec 14, 2020https://github.com/AssemblyScript/assemblyscript/pull/1579#issuecomment-744146180
https://github.com/Cyan4973/xxHashhttps://github.com/Cyan4973/xxHash
Please reload this pagehttps://github.com/AssemblyScript/assemblyscript/pull/1579
https://github.com/dcodeIO
dcodeIOhttps://github.com/dcodeIO
Dec 14, 2020https://github.com/AssemblyScript/assemblyscript/pull/1579#issuecomment-744167188
Please reload this pagehttps://github.com/AssemblyScript/assemblyscript/pull/1579
https://github.com/MaxGraey
MaxGraeyhttps://github.com/MaxGraey
Dec 14, 2020https://github.com/AssemblyScript/assemblyscript/pull/1579#issuecomment-744565425
#1580https://github.com/AssemblyScript/assemblyscript/pull/1580
Please reload this pagehttps://github.com/AssemblyScript/assemblyscript/pull/1579
https://github.com/MaxGraey
MaxGraeyhttps://github.com/MaxGraey
Dec 14, 2020https://github.com/AssemblyScript/assemblyscript/pull/1579#event-4110259440
https://github.com/MaxGraey
MaxGraeyhttps://github.com/MaxGraey
December 14, 2020 16:44https://github.com/AssemblyScript/assemblyscript/pull/1579#event-4110259918
https://github.co/hiddenchars
https://github.com/AssemblyScript/assemblyscript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAssemblyScript%2Fassemblyscript%2Fpull%2F1579
https://github.com/dcodeIO
dcodeIO https://github.com/dcodeIO
Please reload this pagehttps://github.com/AssemblyScript/assemblyscript/pull/1579
enhancement https://github.com/AssemblyScript/assemblyscript/issues?q=state%3Aopen%20label%3Aenhancement
performance https://github.com/AssemblyScript/assemblyscript/issues?q=state%3Aopen%20label%3Aperformance
standard library https://github.com/AssemblyScript/assemblyscript/issues?q=state%3Aopen%20label%3A%22standard%20library%22
Please reload this pagehttps://github.com/AssemblyScript/assemblyscript/pull/1579
https://github.com/MaxGraey
https://github.com/dcodeIO
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.