Skip to content

avoid duplicated session when indexing multiple URLs#397

Merged
asciimoo merged 1 commit intoasciimoo:masterfrom
drzraf:crawler-bidi-mono-session
May 5, 2026
Merged

avoid duplicated session when indexing multiple URLs#397
asciimoo merged 1 commit intoasciimoo:masterfrom
drzraf:crawler-bidi-mono-session

Conversation

@drzraf
Copy link
Copy Markdown

@drzraf drzraf commented May 5, 2026

Related to #396
but a separated diff/PR won't hurt.

indexURL() is called per-URL with plain index URLa URLb.
Each call creates a brand-new crawler (WebSocket connection + session.new + session.end + close) what is very wasteful for bidi.

=> create the crawler once before the loop and pass it into indexURL

Each call creates a brand-new crawler (WebSocket connection + session.new + session.end + close) what is very wasteful for bidi.

=> create the crawler once before the loop and pass it into indexURL
Copy link
Copy Markdown
Owner

@asciimoo asciimoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@asciimoo asciimoo merged commit cba669c into asciimoo:master May 5, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants