Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

investigate optimizations for patterns like(?m)^\w+$ #1301

Open
@BurntSushi

Description

@BurntSushi

In particular, PCRE2's JIT seems to optimize this particular pattern quite well, even when its UCP mode is enabled. SeeBurntSushi/ripgrep#3167 for an example.

Note that if you disable Unicode mode for Rust regexand have theperf-dfa-full crate feature enabled, then performance for(?m)^\w+$ improves quite a bit. This is because the pattern becomes so small that a full DFA is built. This in turn permits state acceleration, which lets it skip around usingmemchr on\n.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp