Thread overview | ||||||
---|---|---|---|---|---|---|
|
May 05, 2009 [Issue 2936] New: std.regex.match() short string optimization | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2936 Summary: std.regex.match() short string optimization Product: D Version: 2.029 Platform: PC OS/Version: Windows Status: NEW Keywords: performance Severity: enhancement Priority: P2 Component: Phobos AssignedTo: bugzilla@digitalmars.com ReportedBy: dsimcha@yahoo.com The following example program leaks memory like a sieve (because the GC is disabled). Apparently, std.regex.match() is not supposed to perform heap allocations. import std.regex, core.memory; void main() { string s = "This is only a test. Repeat, this is only a test."; auto r = regex("is.only"); GC.disable; while(true) { auto m = match(s, r); } } -- |
October 11, 2009 [Issue 2936] std.regex.match() short string optimization | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2936 Andrei Alexandrescu <andrei@metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |andrei@metalanguage.com AssignedTo|nobody@puremagic.com |andrei@metalanguage.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 05, 2011 [Issue 2936] std.regex.match() short string optimization | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2936 Andrei Alexandrescu <andrei@metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|andrei@metalanguage.com |dmitry.olsh@gmail.com --- Comment #1 from Andrei Alexandrescu <andrei@metalanguage.com> 2011-06-05 07:51:13 PDT --- Reassigning to Dmitry. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 09, 2011 [Issue 2936] std.regex.match() short string optimization | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2936 Dmitry Olshansky <dmitry.olsh@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2011-12-09 11:45:53 PST --- Fixed in new std.regex -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation