Re: GC performance: collection frequency

2015-09-17 Thread Dmitry Olshansky via Digitalmars-d
On 14-Sep-2015 21:47, H. S. Teoh via Digitalmars-d wrote: Over in the d.learn forum, somebody posted a question about poor performance in a text-parsing program. After a bit of profiling I discovered that reducing GC collection frequency (i.e., GC.disable() then manually call GC.collect() at

Re: GC performance: collection frequency

2015-09-17 Thread H. S. Teoh via Digitalmars-d
On Thu, Sep 17, 2015 at 11:26:17AM +0300, Dmitry Olshansky via Digitalmars-d wrote: > On 14-Sep-2015 21:47, H. S. Teoh via Digitalmars-d wrote: > >Over in the d.learn forum, somebody posted a question about poor > >performance in a text-parsing program. After a bit of profiling I > >discovered

Re: GC performance: collection frequency

2015-09-16 Thread H. S. Teoh via Digitalmars-d
On Tue, Sep 15, 2015 at 07:08:01AM +0200, Daniel Kozák via Digitalmars-d wrote: > > http://dlang.org/changelog/2.067.0.html#gc-options [...] Wow that is obscure. This really needs to go into the main docs so that it can actually be found... T -- People demand freedom of speech to make up

Re: GC performance: collection frequency

2015-09-14 Thread Daniel Kozák via Digitalmars-d
http://dlang.org/changelog/2.067.0.html#gc-options On Mon, 14 Sep 2015 12:25:06 -0700 "H. S. Teoh via Digitalmars-d" wrote: > On Mon, Sep 14, 2015 at 07:19:53PM +, Jonathan M Davis via > Digitalmars-d wrote: [...] > > Isn't there some amount of configuration

Re: GC performance: collection frequency

2015-09-14 Thread Jonathan M Davis via Digitalmars-d
On Monday, 14 September 2015 at 18:51:36 UTC, H. S. Teoh wrote: Over in the d.learn forum, somebody posted a question about poor performance in a text-parsing program. After a bit of profiling I discovered that reducing GC collection frequency (i.e., GC.disable() then manually call

Re: GC performance: collection frequency

2015-09-14 Thread Jonathan M Davis via Digitalmars-d
On Monday, 14 September 2015 at 18:58:45 UTC, Adam D. Ruppe wrote: On Monday, 14 September 2015 at 18:51:36 UTC, H. S. Teoh wrote: We could also reduce the default collection frequency, of course, but lacking sufficient data I wouldn't know what value to set it to. Definitely. I think it

Re: GC performance: collection frequency

2015-09-14 Thread H. S. Teoh via Digitalmars-d
On Mon, Sep 14, 2015 at 07:19:53PM +, Jonathan M Davis via Digitalmars-d wrote: [...] > Isn't there some amount of configuration that can currently be done > via environment variables? Or was that just something that someone had > done in one of the GC-related dconf talks that never made it

GC performance: collection frequency

2015-09-14 Thread H. S. Teoh via Digitalmars-d
Over in the d.learn forum, somebody posted a question about poor performance in a text-parsing program. After a bit of profiling I discovered that reducing GC collection frequency (i.e., GC.disable() then manually call GC.collect() at some interval) improved program performance by about 20%. This

Re: GC performance: collection frequency

2015-09-14 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 14 September 2015 at 18:51:36 UTC, H. S. Teoh wrote: We could also reduce the default collection frequency, of course, but lacking sufficient data I wouldn't know what value to set it to. Definitely. I think it hits a case where it is right at the edge of the line and you are