René's URL Explorer Experiment


Title: Optimize visiting neighbors by hlinnaka · Pull Request #386 · pgvector/pgvector · GitHub

Open Graph Title: Optimize visiting neighbors by hlinnaka · Pull Request #386 · pgvector/pgvector

X Title: Optimize visiting neighbors by hlinnaka · Pull Request #386 · pgvector/pgvector

Description: Open-source vector similarity search for Postgres. Contribute to pgvector/pgvector development by creating an account on GitHub.

Open Graph Description: Here are two more micro-optimizations of HnswSearchLayer, for HNSW index build 1st Commit: Add a bulk-variant of AddToVisited The idea is to move code around so that we collect all the 'hash...

X Description: Here are two more micro-optimizations of HnswSearchLayer, for HNSW index build 1st Commit: Add a bulk-variant of AddToVisited The idea is to move code around so that we collect all the 'has...

Opengraph URL: https://github.com/pgvector/pgvector/pull/386

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:1e535a7a-1023-e167-8f39-dc2421d0cdb6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDE36:ADCD1:D52C9B:119AB01:6AFE8F22
html-safe-nonce29b88457f5d6e6262559dc756753ab7f92020c2529460c9ab2b09e5e0b728e59
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTM2OkFEQ0QxOkQ1MkM5QjoxMTlBQjAxOjZBRkU4RjIyIiwidmlzaXRvcl9pZCI6Ijc0NTI3ODgyNTkyNTMyOTI4MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac17e6332159c13e06bf7418a7f5a5bfffe4ce787b7f3f0ff3855a0fb72adf4181
hovercard-subject-tagpull_request:1655182895
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/pgvector/pgvector/386/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5ed2285858eeefc681412d0d5351f72cdf9d41b4a2c30cc69b14e33152d36c37/pgvector/pgvector/pull/386
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5ed2285858eeefc681412d0d5351f72cdf9d41b4a2c30cc69b14e33152d36c37/pgvector/pgvector/pull/386
og:image:altHere are two more micro-optimizations of HnswSearchLayer, for HNSW index build 1st Commit: Add a bulk-variant of AddToVisited The idea is to move code around so that we collect all the 'hash...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehlinnaka
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-cache
go-importgithub.com/pgvector/pgvector git https://github.com/pgvector/pgvector.git
octolytics-dimension-user_id98363230
octolytics-dimension-user_loginpgvector
octolytics-dimension-repository_id359952601
octolytics-dimension-repository_nwopgvector/pgvector
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id359952601
octolytics-dimension-repository_network_root_nwopgvector/pgvector
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
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/pgvector/pgvector/pull/386#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpgvector%2Fpgvector%2Fpull%2F386
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%2Fpgvector%2Fpgvector%2Fpull%2F386
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=pgvector%2Fpgvector
Reloadhttps://github.com/pgvector/pgvector/pull/386
Reloadhttps://github.com/pgvector/pgvector/pull/386
Reloadhttps://github.com/pgvector/pgvector/pull/386
pgvectorhttps://github.com/pgvector
pgvectorhttps://github.com/pgvector/pgvector
Codehttps://github.com/pgvector/pgvector
Issues11 (11)https://github.com/pgvector/pgvector/issues
Pull requests8 (8)https://github.com/pgvector/pgvector/pulls
Actionshttps://github.com/pgvector/pgvector/actions
Security and qualityhttps://github.com/pgvector/pgvector/security
Insightshttps://github.com/pgvector/pgvector/insights
https://github.com/pgvector/pgvector
hlinnakahttps://github.com/hlinnaka
pgvector:masterhttps://github.com/pgvector/pgvector/tree/master
hlinnaka:optimize-visit-neighborshttps://github.com/hlinnaka/pgvector/tree/optimize-visit-neighbors
Conversationhttps://github.com/pgvector/pgvector/pull/386
Commits3 (3)https://github.com/pgvector/pgvector/pull/386/commits
Checkshttps://github.com/pgvector/pgvector/pull/386/checks
Files changedhttps://github.com/pgvector/pgvector/pull/386/files
Optimize visiting neighborshttps://github.com/pgvector/pgvector/pull/386#top
hlinnakahttps://github.com/hlinnaka
pgvector:masterhttps://github.com/pgvector/pgvector/tree/master
hlinnaka:optimize-visit-neighborshttps://github.com/hlinnaka/pgvector/tree/optimize-visit-neighbors
https://github.com/hlinnaka
hlinnakahttps://github.com/hlinnaka
Dec 22, 2023https://github.com/pgvector/pgvector/pull/386#issue-2054015893
#311https://github.com/pgvector/pgvector/pull/311
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
https://github.com/jkatz
jkatzhttps://github.com/jkatz
Dec 22, 2023https://github.com/pgvector/pgvector/pull/386#issuecomment-1867960289
herehttps://aws.amazon.com/blogs/database/accelerate-hnsw-indexing-and-searching-with-pgvector-on-amazon-rds-for-postgresql/
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
https://github.com/ankane
ankanehttps://github.com/ankane
Jan 8, 2024https://github.com/pgvector/pgvector/pull/386#issuecomment-1881807132
@hlinnakahttps://github.com/hlinnaka
#388https://github.com/pgvector/pgvector/pull/388
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
https://github.com/hlinnaka
hlinnakahttps://github.com/hlinnaka
Jan 18, 2024 https://github.com/pgvector/pgvector/pull/386#ref-issue-2082796066
Parallel index builds for HNSW #409 https://github.com/pgvector/pgvector/issues/409
https://github.com/hlinnaka
hlinnakahttps://github.com/hlinnaka
force-pushedhttps://github.com/pgvector/pgvector/compare/822af36eca2fa89d80905c59eaa53c9fb1fdc268..6e6e1c70fcc8cfd233b500101c29f1e36f7de01c
822af36https://github.com/pgvector/pgvector/commit/822af36eca2fa89d80905c59eaa53c9fb1fdc268
6e6e1c7https://github.com/pgvector/pgvector/commit/6e6e1c70fcc8cfd233b500101c29f1e36f7de01c
Compare https://github.com/pgvector/pgvector/compare/822af36eca2fa89d80905c59eaa53c9fb1fdc268..6e6e1c70fcc8cfd233b500101c29f1e36f7de01c
January 29, 2024 09:14https://github.com/pgvector/pgvector/pull/386#event-11624739913
https://github.com/hlinnaka
hlinnakahttps://github.com/hlinnaka
Jan 29, 2024https://github.com/pgvector/pgvector/pull/386#issuecomment-1914269179
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
https://github.com/hlinnaka
hlinnakahttps://github.com/hlinnaka
force-pushedhttps://github.com/pgvector/pgvector/compare/6e6e1c70fcc8cfd233b500101c29f1e36f7de01c..e40e68787049a76925a74b5426f8de245181e0e0
6e6e1c7https://github.com/pgvector/pgvector/commit/6e6e1c70fcc8cfd233b500101c29f1e36f7de01c
e40e687https://github.com/pgvector/pgvector/commit/e40e68787049a76925a74b5426f8de245181e0e0
Compare https://github.com/pgvector/pgvector/compare/6e6e1c70fcc8cfd233b500101c29f1e36f7de01c..e40e68787049a76925a74b5426f8de245181e0e0
June 11, 2024 08:42https://github.com/pgvector/pgvector/pull/386#event-13113057323
https://github.com/hlinnaka
hlinnakahttps://github.com/hlinnaka
Jun 11, 2024https://github.com/pgvector/pgvector/pull/386#issuecomment-2160138911
https://www.postgresql.org/message-id/CA%2BhUKGJ_7NKd46nx1wbyXWriuZSNzsTfm%2BrhEuvU6nxZi3-KVw%40mail.gmail.comhttps://www.postgresql.org/message-id/CA%2BhUKGJ_7NKd46nx1wbyXWriuZSNzsTfm%2BrhEuvU6nxZi3-KVw%40mail.gmail.com
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
https://github.com/hlinnaka
hlinnakahttps://github.com/hlinnaka
Jun 12, 2024 https://github.com/pgvector/pgvector/pull/386#ref-issue-2347878273
Post-fitering performance timescale/pgvectorscale#87 https://github.com/timescale/pgvectorscale/issues/87
https://github.com/ankane
ankanehttps://github.com/ankane
Sep 19, 2024https://github.com/pgvector/pgvector/pull/386#issuecomment-2360499450
@hlinnakahttps://github.com/hlinnaka
8dde14ahttps://github.com/pgvector/pgvector/commit/8dde14a7362e99a4f6b31fc355b96bfa0de5c3b4
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
https://github.com/ankane
ankanehttps://github.com/ankane
Sep 21, 2024https://github.com/pgvector/pgvector/pull/386#issuecomment-2365348096
bulk-hash branchhttps://github.com/pgvector/pgvector/compare/bulk-hash
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
https://github.com/hlinnaka
hlinnakahttps://github.com/hlinnaka
force-pushedhttps://github.com/pgvector/pgvector/compare/e40e68787049a76925a74b5426f8de245181e0e0..e0f4a193f6f4519e0fdf8b60a26987ed81dd743e
e40e687https://github.com/pgvector/pgvector/commit/e40e68787049a76925a74b5426f8de245181e0e0
e0f4a19https://github.com/pgvector/pgvector/commit/e0f4a193f6f4519e0fdf8b60a26987ed81dd743e
Compare https://github.com/pgvector/pgvector/compare/e40e68787049a76925a74b5426f8de245181e0e0..e0f4a193f6f4519e0fdf8b60a26987ed81dd743e
October 7, 2024 14:15https://github.com/pgvector/pgvector/pull/386#event-14541527140
https://github.com/hlinnaka
hlinnakahttps://github.com/hlinnaka
Oct 7, 2024https://github.com/pgvector/pgvector/pull/386#issuecomment-2397063052
bulk-hash branchhttps://github.com/pgvector/pgvector/compare/bulk-hash
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
hlinnakahttps://github.com/hlinnaka
October 7, 2024 17:20https://github.com/pgvector/pgvector/pull/386#commits-pushed-4dcb570
https://github.com/hlinnaka
Fetch hashes in separate loop before performing hash table lookupshttps://github.com/pgvector/pgvector/pull/386/commits/4dcb5701f29cadfdaf221891419e4b814b2d2b9b
4dcb570https://github.com/pgvector/pgvector/pull/386/commits/4dcb5701f29cadfdaf221891419e4b814b2d2b9b
https://github.com/hlinnaka
Refactor distance calculations in HnswSearchlayerhttps://github.com/pgvector/pgvector/pull/386/commits/529b9f8caaee9c9317ea3e4fdfa8baeae978ef8e
529b9f8https://github.com/pgvector/pgvector/pull/386/commits/529b9f8caaee9c9317ea3e4fdfa8baeae978ef8e
https://github.com/hlinnaka
PoC: Calculate 4 neighbor distances at a time in HNSW searchhttps://github.com/pgvector/pgvector/pull/386/commits/55142c44fa0be095383c0d39f9057d14af0e121c
55142c4https://github.com/pgvector/pgvector/pull/386/commits/55142c44fa0be095383c0d39f9057d14af0e121c
https://github.com/hlinnaka
hlinnakahttps://github.com/hlinnaka
force-pushedhttps://github.com/pgvector/pgvector/compare/e0f4a193f6f4519e0fdf8b60a26987ed81dd743e..55142c44fa0be095383c0d39f9057d14af0e121c
e0f4a19https://github.com/pgvector/pgvector/commit/e0f4a193f6f4519e0fdf8b60a26987ed81dd743e
55142c4https://github.com/pgvector/pgvector/commit/55142c44fa0be095383c0d39f9057d14af0e121c
Compare https://github.com/pgvector/pgvector/compare/e0f4a193f6f4519e0fdf8b60a26987ed81dd743e..55142c44fa0be095383c0d39f9057d14af0e121c
October 7, 2024 14:21https://github.com/pgvector/pgvector/pull/386#event-14541617016
https://github.com/ankane
ankanehttps://github.com/ankane
Oct 8, 2024https://github.com/pgvector/pgvector/pull/386#issuecomment-2398859016
@jkatzhttps://github.com/jkatz
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
https://github.com/jkatz
jkatzhttps://github.com/jkatz
Oct 8, 2024https://github.com/pgvector/pgvector/pull/386#issuecomment-2399974931
@ankanehttps://github.com/ankane
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
https://github.com/ankane
ankanehttps://github.com/ankane
Oct 8, 2024https://github.com/pgvector/pgvector/pull/386#issuecomment-2400232594
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
https://github.com/jkatz
jkatzhttps://github.com/jkatz
Oct 11, 2024https://github.com/pgvector/pgvector/pull/386#issuecomment-2407668565
@ankanehttps://github.com/ankane
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
https://github.com/sagitrs
sagitrshttps://github.com/sagitrs
Jun 14, 2026 https://github.com/pgvector/pgvector/pull/386#pullrequestreview-4492379241
View reviewed changes https://github.com/pgvector/pgvector/pull/386/files/55142c44fa0be095383c0d39f9057d14af0e121c
sagitrshttps://github.com/sagitrs
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
https://github.com/pgvector/pgvector/pull/386#pullrequestreview-4492379241
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
https://github.co/hiddenchars
https://github.com/pgvector/pgvector/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%2Fpgvector%2Fpgvector%2Fpull%2F386
https://github.com/sagitrs
sagitrs https://github.com/sagitrs
https://github.com/pgvector/pgvector/pull/386/files/55142c44fa0be095383c0d39f9057d14af0e121c
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
Please reload this pagehttps://github.com/pgvector/pgvector/pull/386
https://github.com/hlinnaka
https://github.com/jkatz
https://github.com/ankane
https://github.com/sagitrs
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.