GNU bug report logs - #78827
Performance bug with extended regex {i,j} range

Previous Next

Package: sed;

Reported by: Szász Gergely <szaszg <at> hu.inter.net>

Date: Wed, 18 Jun 2025 15:19:02 UTC

Severity: normal

To reply to this bug, email your comments to 78827 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-sed <at> gnu.org:
bug#78827; Package sed. (Wed, 18 Jun 2025 15:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Szász Gergely <szaszg <at> hu.inter.net>:
New bug report received and forwarded. Copy sent to bug-sed <at> gnu.org. (Wed, 18 Jun 2025 15:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Szász Gergely <szaszg <at> hu.inter.net>
To: bug-sed <at> gnu.org
Subject: Performance bug with extended regex {i,j} range
Date: Wed, 18 Jun 2025 17:18:25 +0200
[Message part 1 (text/plain, inline)]
Hi,

> time echo -e 'first\nsecond\nthird' | sed -nre '/.{6,32767}/p'
second

real    1m45.403s 
user    1m40.283s
sys     0m5.118s

The same with pcre2 lib:
> time echo -e 'first\nsecond\nthird' | grep -P '.{6,32767}'
second

real    0m0.002s
user    0m0.000s
sys     0m0.002s

Best regards,
Gergely Szasz
[Message part 2 (text/html, inline)]

This bug report was last modified 8 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.