Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Profile (Wolfram Workbench)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72842] Re: Profile (Wolfram Workbench)
  • From: "Chris Chiasson" <chris at chiasson.name>
  • Date: Mon, 22 Jan 2007 03:43:05 -0500 (EST)
  • References: <acbec1a40701210316i7833cdabx2a743beb45b7ed3a@mail.gmail.com>

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 1/21/07, Chris Chiasson <chris at chiasson.name> wrote:
> Here is the output of the Profile command 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, Chris Chiasson <chris 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
> > the profile table. Maybe that happened because it was too fast?
> >
> > Anyway, I'm lost. :[
> >
> > On 1/21/07, Chris Chiasson <chris at chiasson.name> wrote:
> > > Is there a way to make the Profile command profile functions in the
> > > System` context? I need to know what combination of functions is going
> > > to work the fastest, but Profile leaves these functions out of its
> > > summary.
> > >
> > > Also, the Profile command has no usage message...
> > >
> > > --
> > > http://chris.chiasson.name/
> > >
> >
> >
> > --
> > http://chris.chiasson.name/
> >
>
>
> --
> http://chris.chiasson.name/
>


-- 
http://chris.chiasson.name/


  • Prev by Date: Re: simple equation manipulation
  • Next by Date: Re: MathKernel crashes
  • Previous by thread: Re: Profile (Wolfram Workbench)
  • Next by thread: Re: Profile (Wolfram Workbench)