Skip to content

Regex HASH_PLACEHOLDER_RE is bloated #1480

@Boshen

Description

@Boshen

once_cell::sync::Lazy::new(|| regex::Regex::new(r"\[hash(?::(\d+))?\]").unwrap());

image

Every call allocates too much memory.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions