Re: Big performances pb
Re: Big performances pb
- Subject: Re: Big performances pb
- From: Ondra Cada <email@hidden>
- Date: Sun, 10 Feb 2002 13:37:44 +0100
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? 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.