Csound Csound-dev Csound-tekno Search About

[Cs-dev] faster score processing

Date2012-03-28 16:13
FromTito Latini
Subject[Cs-dev] faster score processing
AttachmentsNone  

Date2012-03-28 16:43
Fromjpff@cs.bath.ac.uk
SubjectRe: [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

Date2012-03-28 16:47
FromTito Latini
SubjectRe: [Cs-dev] faster score processing
AttachmentsNone  

Date2012-03-28 17:56
FromTito Latini
SubjectRe: [Cs-dev] faster score processing
AttachmentsNone  

Date2012-03-28 18:10
FromSteven Yi
SubjectRe: [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  wrote:
> Steven, it was the problem with the rt performance in Blue,
> so it is to forget, now the cpu breathes.
>
> 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

Date2012-03-28 18:13
FromTito Latini
SubjectRe: [Cs-dev] faster score processing
AttachmentsNone  

Date2012-03-28 18:22
FromSteven Yi
SubjectRe: [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  wrote:
>> So the slow score sorting was due to some zombie csound process from
>> blue?  Ah.  I still have been unable to reproduce unfortunately. :(
>
> No, zombies and ghosts are not a problem, it resolves the Brian Wong's
> `Tintinnabulation' compositions, do you remember?
>
> 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