[Cs-dev] faster score processing
Date | 2012-03-28 16:13 |
From | Tito Latini |
Subject | [Cs-dev] faster score processing |
Attachments | None |
Date | 2012-03-28 16:43 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] faster score processing |
Sounfds good -- I was being lazy over using sscanf which I usually try to avoid. Think you solution is good ==John ff > I have finally discovered the cause of the slow down > in the score processing after 5.14.2 (score in memory). > > The prior episode is here > > http://csound.1045644.n5.nabble.com/score-processing-in-memory-is-slow-with-micro-events-td5595868.html > > `sscanf' in `corfile_get_flt' (corfiles.c) is a turtle so I have rewritten > > MYFLT corfile_get_flt(CORFIL *f) > { > int n = f->p; > MYFLT ans; > while(!isspace(f->body[++f->p])); > ans = (MYFLT) atof(&f->body[n]); > return ans; > } > > and with the first test (0.001 msec) I get > > csound test.orc test.sco > ... > Elapsed time at end of performance: real: 0.947s, CPU: 0.290s > ... > > Success. > > Let me know if I can "rapidly" to apply it or if you have a better > solution. > > tito > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > > > ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2012-03-28 16:47 |
From | Tito Latini |
Subject | Re: [Cs-dev] faster score processing |
Attachments | None |
Date | 2012-03-28 17:56 |
From | Tito Latini |
Subject | Re: [Cs-dev] faster score processing |
Attachments | None |
Date | 2012-03-28 18:10 |
From | Steven Yi |
Subject | Re: [Cs-dev] faster score processing |
Hi Tito, So the slow score sorting was due to some zombie csound process from blue? Ah. I still have been unable to reproduce unfortunately. :( Thanks! steven On Wed, Mar 28, 2012 at 5:56 PM, Tito Latini |
Date | 2012-03-28 18:13 |
From | Tito Latini |
Subject | Re: [Cs-dev] faster score processing |
Attachments | None |
Date | 2012-03-28 18:22 |
From | Steven Yi |
Subject | Re: [Cs-dev] faster score processing |
Ah, yes, that one was quite slow to render; many thanks! On Wed, Mar 28, 2012 at 6:13 PM, Tito Latini |