[jitter] Re: Problems with speed of patch using Expr and Matrix
Carl Knott
carl.knott at gmail.com
Wed Aug 1 09:52:50 MDT 2007
- Previous message: [jitter] Problems with speed of patch using Expr and Matrix
- Next message: [jitter] Re: Problems with speed of patch using Expr and Matrix
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Okay I see. Though I'm not entirely sure what you mean by an optimized pipeline. Do you have a reference? Btw, just for clarification, this is one of my formulas. (-0.034886*pow(norm[0]\\,6)-0.087331*pow(norm[0]\\,5)+0.58852*pow(norm[0]\\,4)-0.024326*pow(norm[0]\\,3)-1.4418*pow(norm[0]\\,2)-0.00025598*norm[0]+1)*sin(norm[0]*2)*cos(0*PI*snorm[1]) jeanfrancois.charles, ahh yes, I solved that one with a delay. Quote: wesley.hoke at gmail.com wrote on Wed, 01 August 2007 09:24 ---------------------------------------------------- > It's not creating a new matrix that's the problem, it's more than > likely the speed of jit.expr's evaluation. It's not a fast object by > its very nature, especially if you have decently sized exressions. If > you have a fixed number of expressions, I would recommend building an > optimized pipeline for each and switching between those. If you're > using JAVA than this is fairly easy to do because you can make a > function for each expression and switch between them based on a > parameter. > > wes > > On 8/1/07, Carl Knott <carl.knott at gmail.com> wrote: > > Okay, I've looked at my patch again and it is not the 'virtual sand' that I orignally thought was the problem. > > > > [img]index.php?t=getfile&id=777&private=0[/img] > > > > I have 20 or so formula's in a java external. They are selected using values, n and m in inlet 2 and 3 - no processing at all. The selected formula is passed out of the outlet into jit.expr. As the formula is be passed into jit.expr it starts a bang, where a new matrix is also passed into jit.expr. If I scroll through the values n/m I get lots of slow down! I'm sure it has something to do with creating a new matrix for each expr! Though I dont know a better approach? Any ideas? > > > > Thanks. > > > > > > > > > > > > > ----------------------------------------------------
- Previous message: [jitter] Problems with speed of patch using Expr and Matrix
- Next message: [jitter] Re: Problems with speed of patch using Expr and Matrix
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
