• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Big performances pb
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Big performances pb


  • Subject: Re: Big performances pb
  • From: kubernan <email@hidden>
  • Date: Sun, 10 Feb 2002 13:59:11 +0100

Le dimanche 10 fivrier 2002, ` 01:37 PM, Ondra Cada a icrit :

kubernan,

kubernan (k) wrote at Sun, 10 Feb 2002 13:34:46 +0100:
k> >Well, the GUI means no overhead if you don't touch it...You should tell
k> >us
k> >what you are doing to the GUI...Are you disabling the button over and
k> >over
k> >in the middle of the loop or what?
k> >
k> Nope. I you click on the "Launch" button the fields and the other
k> buttons of the GUI
k> are disabled (only one time) and the computation process starts. That's
k> all....
k> I tried to start the computation process in a detached thread but i
k> have the same result : 3 hours :-(

And the computation sources are exactly byte-to-byte the same ones as those
three-minutes-in-Terminal were?

It is exactly the same source code !
Following your sample : i took doComputer() and put it into a new project (foundation tool project).

The _ONLY_ difference is that originally
there was something like

#import "ComputationPart.h" // doCompute there
...
int main(int ac,char**av) {
...
beginTimer();
doCompute();
endTimer(); // shown three minutes
...
}

whilst now there is something like

#import "ComputationPart.h" // doCompute there
...
@interface SomeController:NSObject
...
-(IBAction)launchComputations:sender {
beginTimer();
doCompute(); // EXACTLY THE SAME CODE CALLED
endTimer(); // shows three hours
}

? That just can't be, there has to be some hidden very, very big gotcha. You
said you played with multithreading, can't that be the problem?
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Big performances pb
      • From: Marcel Weiher <email@hidden>
References: 
 >Re: Big performances pb (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Big performances pb
  • Next by Date: NSMatrix Examples?
  • Previous by thread: Re: Big performances pb
  • Next by thread: Re: Big performances pb
  • Index(es):
    • Date
    • Thread