Thread overview
[Issue 15093] optimize slist_reset
Jan 06, 2016
John Colvin
Dec 17, 2022
Iain Buclaw
January 06, 2016
https://issues.dlang.org/show_bug.cgi?id=15093

John Colvin <john.loughran.colvin@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.loughran.colvin@gmail.
                   |                            |com

--- Comment #1 from John Colvin <john.loughran.colvin@gmail.com> ---
I did some testing building phobos and slist_reset is a no-op for approx. 99.95% of the symbols it iterates over.

Another possible approach, perhaps a bit complicated/intrusive: hide the reset members of Symbol behind getters/setters, have a global reset counter, with a cache in each Symbol, Symbols reset all relevant members in any getter/setter if the counter is larger than their cached value, then cache the current counter. slist_reset increments the counter.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=15093

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 13
https://issues.dlang.org/show_bug.cgi?id=15093

--- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19047

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--