Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jul 22, 2021

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

rmosolgo and others added 30 commits December 9, 2025 14:39
Add test for lazy-defined connection type in class
[INVALID_NUMBER_FOLLOWED_BY_NAME_REGEXP] Don't add whitespace when vars include numbers
Claude Code helped to optimize this potentially slow regexp depending on
the document. Specifically, the backtracking in the original regexp was
the main performance issue.

This does a few things:

1. adds a very simple and faster pre-check to gate if the main regexp
   should even run
2. prevents as much backtracking as possible

Benchmarks:

| Document Type                  | Before | After  | Speedup |
|--------------------------------|--------|--------|---------|
| Typical large (125KB)          | 0.72s  | 0.06s  | 12x     |
| Colon-heavy (35KB)             | 0.24s  | 0.007s | 34x     |
| Pathological worst-case (26KB) | 1.64s  | 0.25s  | 6.6x    |
| No digits (17KB)               | 0.10s  | 0.002s | 54x     |
…ed-by-name-regexp

Optimize INVALID_NUMBER_FOLLOWED_BY_NAME_REGEXP
Remove Field.from_options to reduce memory usage
Improve documentation for `field` and `argument` DSL methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.