René's URL Explorer Experiment


Title: perf: bound single-token lookahead probes by fudianchn · Pull Request #2829 · JSQLParser/JSqlParser · GitHub

Open Graph Title: perf: bound single-token lookahead probes by fudianchn · Pull Request #2829 · JSQLParser/JSqlParser

X Title: perf: bound single-token lookahead probes by fudianchn · Pull Request #2829 · JSQLParser/JSqlParser

Description: AI disclosure: this change was prepared with AI coding agents. This revision is awaiting my line-by-line review. What Bound 57 complete single-token syntactic probes to depth one and remove the redundant depth-three guard in DBMSDestination. Keep the parser regression tests. Remove the in-repository audit tooling, its build task, CI integration and documentation, as requested. Why Complete one-token probes need only one token of lookahead. The DBMSDestination alternatives start with distinct TABLE and STATEMENT tokens, so their existing dispatch does not need a three-token probe. How Keep each explicit token restriction as LOOKAHEAD(1, ...); deleting it could widen the decision to the following production. Preserve semantic predicates and multi-token probes. Merge current master while retaining its newer grammar changes. Reusable audit tooling is tracked separately in manticore-projects/javacc-8-core#1; this PR adds no JavaCC integration or dependency. Root cause An unbounded syntactic probe generates scan machinery even when its complete restriction is a single token. The DBMS destination guard also probes beyond the token needed to choose its alternative. Testing 29 focused parser cases pass. On current master, only the expected missing-TABLE-name consumption assertion fails; the other 28 pass. Forcing the TABLE branch makes both STATEMENT guards fail. Gradle check: 12,200 tests, zero failures/errors, 25 skipped. Maven clean verify: 12,182 tests, zero failures/errors, 25 skipped. Both parsers produce all 54 corpus statements with identical deparsed output, semantic fields and serialized AST bytes. Project JMH parseSQLStatements, identical corpus and benchmark bytecode, JDK 17.0.20 on an i9-13900KS (32 logical CPUs), interleaved master/candidate twice: each window has 3 forks, 3 three-second warmups and 10 one-second measurements per fork (120 measurement samples overall). Master: 19.447 ± 1.042 and 17.942 ± 0.441 ms/op; candidate: 18.575 ± 1.116 and 18.431 ± 0.712 ms/op (JMH 99.9% confidence intervals). Paired changes are -4.48% and +2.73%; intervals overlap and host load varies. These measurements establish neither a reliable speedup nor a stable slowdown. An initial three-second-total warmup attempt was stopped after observing continued warmup drift and is excluded from these figures. Remote CI and other operating systems were not run locally. Behavior notes EXA AT conn TABLE remains invalid. It now reports the missing table name after consuming TABLE, rather than falling through to the STATEMENT alternative. Exact diagnostic text and location are not preserved. No public AST API is changed.

Open Graph Description: AI disclosure: this change was prepared with AI coding agents. This revision is awaiting my line-by-line review. What Bound 57 complete single-token syntactic probes to depth one and remove the red...

X Description: AI disclosure: this change was prepared with AI coding agents. This revision is awaiting my line-by-line review. What Bound 57 complete single-token syntactic probes to depth one and remove the red...

Opengraph URL: https://github.com/JSQLParser/JSqlParser/pull/2829

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1a58576b-64ae-7e4e-a7c1-7fdb8e9d1891
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC20C:3488ED:E52E9F:140E91C:6B044309
html-safe-noncef055148a5c45d4831c763cdbeb3fb70cc80b0f1db9e29e6ab3effcd8b008d56a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjBDOjM0ODhFRDpFNTJFOUY6MTQwRTkxQzo2QjA0NDMwOSIsInZpc2l0b3JfaWQiOiI3MDIxNzMzNTczMjE2NzE1NTI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5e4d08f1096d2fa0e82387ef127a006f08b54fe0be4a8a3123ede4f19c8772ad
hovercard-subject-tagpull_request:4884890635
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/JSQLParser/JSqlParser/pull/2829/files
twitter:imagehttps://avatars.githubusercontent.com/u/40510713?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40510713?s=400&v=4
og:image:altAI disclosure: this change was prepared with AI coding agents. This revision is awaiting my line-by-line review. What Bound 57 complete single-token syntactic probes to depth one and remove the red...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/JSQLParser/JSqlParser git https://github.com/JSQLParser/JSqlParser.git
octolytics-dimension-user_id4643847
octolytics-dimension-user_loginJSQLParser
octolytics-dimension-repository_id1944709
octolytics-dimension-repository_nwoJSQLParser/JSqlParser
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1944709
octolytics-dimension-repository_network_root_nwoJSQLParser/JSqlParser
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JSQLParser/JSqlParser/pull/2829/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fpull%2F2829%2Ffiles
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%2FJSQLParser%2FJSqlParser%2Fpull%2F2829%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=JSQLParser%2FJSqlParser
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2829/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2829/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2829/files
JSQLParserhttps://github.com/JSQLParser
JSqlParserhttps://github.com/JSQLParser/JSqlParser
Codehttps://github.com/JSQLParser/JSqlParser
Issues2 (2)https://github.com/JSQLParser/JSqlParser/issues
Pull requests2 (2)https://github.com/JSQLParser/JSqlParser/pulls
Discussionshttps://github.com/JSQLParser/JSqlParser/discussions
Actionshttps://github.com/JSQLParser/JSqlParser/actions
Projectshttps://github.com/JSQLParser/JSqlParser/projects
Wikihttps://github.com/JSQLParser/JSqlParser/wiki
Security and qualityhttps://github.com/JSQLParser/JSqlParser/security
Insightshttps://github.com/JSQLParser/JSqlParser/insights
Sign up for GitHub https://github.com/signup?return_to=%2FJSQLParser%2FJSqlParser%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FJSQLParser%2FJSqlParser%2Fissues%2Fnew%2Fchoose
manticore-projectshttps://github.com/manticore-projects
JSQLParser:masterhttps://github.com/JSQLParser/JSqlParser/tree/master
fudianchn:perf/lookahead-audithttps://github.com/fudianchn/JSqlParser/tree/perf/lookahead-audit
Conversation 10 https://github.com/JSQLParser/JSqlParser/pull/2829
Commits 2 https://github.com/JSQLParser/JSqlParser/pull/2829/commits
Checks 10 https://github.com/JSQLParser/JSqlParser/pull/2829/checks
Files changed https://github.com/JSQLParser/JSqlParser/pull/2829/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2829/files
perf: bound single-token lookahead probes https://github.com/JSQLParser/JSqlParser/pull/2829/files#top
Show all changes 2 commits https://github.com/JSQLParser/JSqlParser/pull/2829/files
1c729e4 perf: bound token probes and reuse lookahead analysis fudianchn Oct 19, 2026 https://github.com/JSQLParser/JSqlParser/pull/2829/commits/1c729e4634bf44fe451e1a3fedbbb3404a7df41f
e8eae62 refactor: narrow lookahead cleanup to grammar changes fudianchn Oct 25, 2026 https://github.com/JSQLParser/JSqlParser/pull/2829/commits/e8eae6223a6fd12b25f15f6bb89d6083eaf2923e
Clear filters https://github.com/JSQLParser/JSqlParser/pull/2829/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2829/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2829/files
JSqlParserCC.jjt https://github.com/JSQLParser/JSqlParser/pull/2829/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
LookaheadCleanupTest.java https://github.com/JSQLParser/JSqlParser/pull/2829/files#diff-f7ca64c06b4f2641e3eecc7172619257c582fb8c1c4691017b8dc8f5fbf94cb1
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2829/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2829/files
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.