Re: Profile (Wolfram Workbench)
- To: mathgroup at smc.vnet.net
- Subject: [mg72957] Re: Profile (Wolfram Workbench)
- From: "Chris Chiasson" <chris.chiasson at gmail.com>
- Date: Fri, 26 Jan 2007 07:14:36 -0500 (EST)
- References: <acbec1a40701210316i7833cdabx2a743beb45b7ed3a@mail.gmail.com>
I didn't see my last message on this in the newsgroup. Here it is: The problem with my code was that I wrote a pattern test of the form _?test that was being executed frequently. For now, I have removed the test and changed the pattern itself so that the pattern gives some of the same "assurances" that the test did - but they aren't fool proof. I should change functions that handle user input to be more strict than those that handle internally generated data. That is all. Thank you. On Jan 22, 2:37 am, "Chris Chiasson" <c... at chiasson.name> wrote: > Here is the output of theProfilecommand for one of my inputs. > > http://test.chris.chiasson.name/Engineering_Optimization/profileTest.nb > > If you want to see the relevant source code, type docBookTableGeneral > into the search box on this page to be taken to the relevant location > in the source: > > http://code.google.com/p/mmade/source > > A good approximation to the table in my test command would be... > > Map[If[NumberQ@#,ToString@#,#]&, > Prepend[Array[Random[Real,{-1,10}]&,{79,12}], > Flatten@Module[{v,b,h},{"#",v,Table[b@i,{i,5}],Table[h@i,{i,5}]}]],{2}] > > On 1/21/07, ChrisChiasson<c... at chiasson.name> wrote: > > > > > Actually, I am not sure what it is doing. > > > Here is the second command I profiled: > > > MapIndexed[If[NumberQ[#1],ToString[#1],#1]&,Prepend[evals[standard[equalSegmentLength]][[2]],Flatten[{"#",V,var[baseHeight]}]],{2}] > > > It converts the numbers in a large table to strings. I realize > > MapIndexed is unnecessary here. > > > The evaluation table for this command only has one entry: "True" > > > I was hoping for it to capture MapIndexed and the pure function. > > > I lost the first command I profiled, but it produced zero entries in > > theprofiletable. Maybe that happened because it was too fast? > > > Anyway, I'm lost. :[ > > > On 1/21/07, ChrisChiasson<c... at chiasson.name> wrote: > > > Is there a way to make theProfilecommandprofilefunctions in the > > > System` context? I need to know what combination of functions is going > > > to work the fastest, butProfileleaves these functions out of its > > > summary. > > > > Also, theProfilecommand has no usage message... > > > > -- > > >http://chris.chiasson.name/ > > > -- > >http://chris.chiasson.name/--http://chris.chiasson.name/