Re: scheme night-mare...

2010-07-18 Thread Arno Waschk
the big difference came out of the notes.clean() (???) line! yours, Arno On Thu, 15 Jul 2010 01:02:07 +0200, Joe Neeman wrote: On Wed, Jul 14, 2010 at 3:34 PM, Arno Waschk wrote: On Wed, 14 Jul 2010 21:21:28 +0200, Joe Neeman wrote: On Wed, Jul 14, 2010 at 9:49 AM, Arno Waschk wrote:

Re: scheme night-mare...

2010-07-14 Thread Joe Neeman
On Wed, Jul 14, 2010 at 3:34 PM, Arno Waschk wrote: > On Wed, 14 Jul 2010 21:21:28 +0200, Joe Neeman > wrote: > > On Wed, Jul 14, 2010 at 9:49 AM, Arno Waschk wrote: >> >> >>> seems this is something which is new (i tried as well 2.13.26). >>> it just meens that the swap partition is full... >

Re: scheme night-mare...

2010-07-14 Thread Arno Waschk
On Wed, 14 Jul 2010 21:21:28 +0200, Joe Neeman wrote: On Wed, Jul 14, 2010 at 9:49 AM, Arno Waschk wrote: On Wed, 14 Jul 2010 13:27:53 +0200, Arno Waschk wrote: On Wed, 14 Jul 2010 01:53:21 +0200, Joe Neeman wrote: On Tue, Jul 13, 2010 at 2:55 PM, Neil Puttock wrote: Hi Joe, O

Re: scheme night-mare...

2010-07-14 Thread Joe Neeman
On Wed, Jul 14, 2010 at 9:49 AM, Arno Waschk wrote: > On Wed, 14 Jul 2010 13:27:53 +0200, Arno Waschk wrote: > > On Wed, 14 Jul 2010 01:53:21 +0200, Joe Neeman >> wrote: >> >> On Tue, Jul 13, 2010 at 2:55 PM, Neil Puttock >>> wrote: >>> >>> Hi Joe, On 13 July 2010 02:18, Joe Neema

Re: scheme night-mare...

2010-07-14 Thread Arno Waschk
On Wed, 14 Jul 2010 13:27:53 +0200, Arno Waschk wrote: On Wed, 14 Jul 2010 01:53:21 +0200, Joe Neeman wrote: On Tue, Jul 13, 2010 at 2:55 PM, Neil Puttock wrote: Hi Joe, On 13 July 2010 02:18, Joe Neeman wrote: > Does the attached patch help? For me, it reduces dramatically the > n

Re: scheme night-mare...

2010-07-14 Thread Arno Waschk
On Wed, 14 Jul 2010 01:53:21 +0200, Joe Neeman wrote: On Tue, Jul 13, 2010 at 2:55 PM, Neil Puttock wrote: Hi Joe, On 13 July 2010 02:18, Joe Neeman wrote: > Does the attached patch help? For me, it reduces dramatically the > number of times that combine_pure_heights (and also ly_scm2in

Re: scheme night-mare...

2010-07-13 Thread Joe Neeman
On Tue, Jul 13, 2010 at 2:55 PM, Neil Puttock wrote: > Hi Joe, > > On 13 July 2010 02:18, Joe Neeman wrote: > > > Does the attached patch help? For me, it reduces dramatically the > > number of times that combine_pure_heights (and also ly_scm2interval) > > is called, but it has very little effec

Re: scheme night-mare...

2010-07-13 Thread Neil Puttock
Hi Joe, On 13 July 2010 02:18, Joe Neeman wrote: > Does the attached patch help? For me, it reduces dramatically the > number of times that combine_pure_heights (and also ly_scm2interval) > is called, but it has very little effect on lilypond's overall running > time (for the optimized build, at

Re: scheme night-mare...

2010-07-12 Thread Joe Neeman
> Hi, the mentioned routine is called ~ 23 times and does hardly consume > time according to gprof. > it is a cello and piano score with quite lot systems squeezed onto the a3 > pages. it contains ~ 1600 bars, and breaks.size() is around 1200 IIRC Does the attached patch help? For me, it reduc

Re: scheme night-mare...

2010-07-12 Thread Arno Waschk
On Mon, 12 Jul 2010 22:23:04 +0200, Joe Neeman wrote: On Monday, July 12, 2010 06:51:15 am Arno Waschk wrote: On Mon, 12 Jul 2010 15:02:26 +0200, Carl Sorensen wrote: > On 7/12/10 4:48 AM, "Arno Waschk" wrote: >>> Just finished a profile run with a larger score- ly_scm2interval is >>> repor

Re: scheme night-mare...

2010-07-12 Thread Joe Neeman
On Monday, July 12, 2010 06:51:15 am Arno Waschk wrote: > On Mon, 12 Jul 2010 15:02:26 +0200, Carl Sorensen > > wrote: > > On 7/12/10 4:48 AM, "Arno Waschk" wrote: > >>> Just finished a profile run with a larger score- ly_scm2interval is > >>> reported to have consumd 16% of computation time. Th

Re: scheme night-mare...

2010-07-12 Thread Carl Sorensen
Arno, I think you're doing a great job of tracking this issue down! Keep up the good work, Carl ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel

Re: scheme night-mare...

2010-07-12 Thread Arno Waschk
On Mon, 12 Jul 2010 15:02:26 +0200, Carl Sorensen wrote: On 7/12/10 4:48 AM, "Arno Waschk" wrote: Just finished a profile run with a larger score- ly_scm2interval is reported to have consumd 16% of computation time. There must be something wrong. ... which appears in a loop, which i

Re: scheme night-mare...

2010-07-12 Thread Arno Waschk
On Mon, 12 Jul 2010 15:02:26 +0200, Carl Sorensen wrote: On 7/12/10 4:48 AM, "Arno Waschk" wrote: Just finished a profile run with a larger score- ly_scm2interval is reported to have consumd 16% of computation time. There must be something wrong. ... which appears in a loop, which i

Re: scheme night-mare...

2010-07-12 Thread Carl Sorensen
On 7/12/10 4:48 AM, "Arno Waschk" wrote: >> >> Just finished a profile run with a larger score- ly_scm2interval is >> reported to have consumd 16% of computation time. There must be >> something wrong. >> > > ... which appears in a loop, which is performed >2 billions times (!) for > a 18 a

Re: scheme night-mare...

2010-07-12 Thread Arno Waschk
Just finished a profile run with a larger score- ly_scm2interval is reported to have consumd 16% of computation time. There must be something wrong. ... which appears in a loop, which is performed >2 billions times (!) for a 18 a3 page test score. Says gprof... Is that possible/necess

Re: scheme night-mare...

2010-07-11 Thread Han-Wen Nienhuys
On Sun, Jul 11, 2010 at 7:47 PM, Arno Waschk wrote: >>> SCM proc = ly_lily_module_constant ("map-alist-keys"); >>> >>> Call the procedure, using scm_call_2: >>> >>> SCM result = scm_call_2 (proc, arg1, arg2); >>> > > okay, what are arg1 and arg2, and what is the type of result beyond being > call

Re: scheme night-mare...

2010-07-11 Thread Boris Shingarov
On 07/11/2010 07:22 PM, Arno Waschk wrote: Thanks again, that wokrs at least for some displaying, buit still i need that handy conversion from this type of scheme list into something i can deal with with c. Please!!! No, no, the main question is, what are you going to do with that "something

Re: scheme night-mare...

2010-07-11 Thread Boris Shingarov
On 07/11/2010 06:47 PM, Arno Waschk wrote: okay, what are arg1 and arg2, and what is the type of result beyond being called "SCM"? An ID for a Scheme entity. This is a fundamental concept in languages such as Scheme, Smalltalk, Self of Java. The value of the SCM itself is completely opaque

Re: scheme night-mare...

2010-07-11 Thread Arno Waschk
On Mon, 12 Jul 2010 01:11:40 +0200, Neil Puttock wrote: On 11 July 2010 23:08, Arno Waschk wrote: Anyway, i came to a point where it seems very helpful to provide an easy option to print somehow the actual content of e. g. a grob at a certain point in the c++ code, or easily do some other

Re: scheme night-mare...

2010-07-11 Thread Neil Puttock
On 11 July 2010 23:08, Arno Waschk wrote: > Anyway, i came to a point where it seems very helpful to provide an easy > option to print somehow the actual content of e. g. a grob at a certain > point in the c++ code, or easily do some other voodoo to it, which i do not > know yet... If you use th

Re: scheme night-mare...

2010-07-11 Thread Arno Waschk
On Mon, 12 Jul 2010 00:08:02 +0200, Arno Waschk wrote: On Sun, 11 Jul 2010 20:08:10 +0200, Neil Puttock wrote: On 11 July 2010 15:52, Arno Waschk wrote: How do i use this in a c line? Look up the procedure: SCM proc = ly_lily_module_constant ("map-alist-keys"); Call the procedure, u

Re: scheme night-mare...

2010-07-11 Thread Arno Waschk
On Sun, 11 Jul 2010 20:08:10 +0200, Neil Puttock wrote: On 11 July 2010 15:52, Arno Waschk wrote: How do i use this in a c line? Look up the procedure: SCM proc = ly_lily_module_constant ("map-alist-keys"); Call the procedure, using scm_call_2: SCM result = scm_call_2 (proc, arg1, arg

Re: scheme night-mare...

2010-07-11 Thread Neil Puttock
On 11 July 2010 15:52, Arno Waschk wrote: > How do i use this in a c line? Look up the procedure: SCM proc = ly_lily_module_constant ("map-alist-keys"); Call the procedure, using scm_call_2: SCM result = scm_call_2 (proc, arg1, arg2); >> Your question isn't really about converting from schem

Re: scheme night-mare...

2010-07-11 Thread Arno Waschk
On Sun, 11 Jul 2010 16:35:07 +0200, Carl Sorensen wrote: On 7/11/10 8:18 AM, "Arno Waschk" wrote: On Sun, 11 Jul 2010 16:01:52 +0200, Carl Sorensen wrote: On 7/11/10 7:53 AM, "Arno Waschk" wrote: On Sun, 11 Jul 2010 15:48:57 +0200, Carl Sorensen wrote: On 7/11/10 7:16 AM, "A

Re: scheme night-mare...

2010-07-11 Thread Carl Sorensen
On 7/11/10 7:16 AM, "Arno Waschk" wrote: > Dear list, > > in the hope not for the x-th time having to give up due to that type mess > scheme/c++ please forgive and help me: > > how can i convert/process/whatever the result of > whateverGrob->get_property_alist_chain (SCM_EOL) into something eas