Re: Performance impact of top level definitions

2018-05-15 Thread Brian
Hi Mark, Thanks for that explanation, it makes sense now to me. Cheers! On Mon, 2018-05-14 at 22:55 -0400, Mark H Weaver wrote: > Hi Brian, > > Brian writes: > > > Today I found that top level defines have a significant performance > > impact on Guile (2.2.3). The following program takes abo

Re: Performance impact of top level definitions

2018-05-14 Thread Mark H Weaver
Hi Brian, Brian writes: > Today I found that top level defines have a significant performance > impact on Guile (2.2.3). The following program takes about 108 seconds > to complete on my ThinkPad (an i5-5200U with Arch Linux): [...] > By simply wrapping that code in a lambda the program finished

Performance impact of top level definitions

2018-05-08 Thread Brian
Hello, Today I found that top level defines have a significant performance impact on Guile (2.2.3). The following program takes about 108 seconds to complete on my ThinkPad (an i5-5200U with Arch Linux): (define node cons) (define node-left car) (define node-right cdr) (define (make d) (if (=