Welcome to MilkyWay@home

Source code improvement discussion


Advanced search

Message boards : Number crunching : Source code improvement discussion
Message board moderation

To post messages, you must log in.

Previous · 1 · 2

AuthorMessage
ProfileDave Przybylo
Avatar

Send message
Joined: 5 Feb 08
Posts: 236
Credit: 49,648
RAC: 0
10 thousand credit badge10 year member badge
Message 5432 - Posted: 10 Oct 2008, 2:51:45 UTC - in response to Message 5431.  

I am not a programmer though, so I'm not too familar on how to interpret the results


I am a programmer, but not one that has ever really had to deal with performance profiling and tuning of an application. I see that it spent a lot of time in what I had gone back up to earlier today, calculate_integrals. It has pointers to what I believe are 3 structs being sent into it. I may be wrong about structs. It has been quite a while since actively dealing with C or C++. This is where I start disliking C, with all the pointers and referencing and dereferencing and manual memory management rather than the "easy" way of garbage collection, etc, etc, etc... However, I know that opinion comes from the fact that I do "business logic" applications, not scientific or math applications...

Anyway, if I'm feeling really industrious, sometime over the weekend I may try to get my old Visual Studio 6 installed...and see if I can remember how in the heck to compile / make the thing... .Net makes it real easy to just load the .prj or .sln...


You can do C in any Visual Studio version. I recommend 2005. I like VS a lot. I switched to Mac though and my onIy regret is I have to use xCode now.
Dave Przybylo
MilkyWay@home Developer
Department of Computer Science
Rensselaer Polytechnic Institute
ID: 5432 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
vraa

Send message
Joined: 6 Mar 08
Posts: 8
Credit: 6,870,220
RAC: 0
5 million credit badge10 year member badge
Message 5433 - Posted: 10 Oct 2008, 3:33:56 UTC - in response to Message 5432.  

I am not a programmer though, so I'm not too familar on how to interpret the results


I am a programmer, but not one that has ever really had to deal with performance profiling and tuning of an application. I see that it spent a lot of time in what I had gone back up to earlier today, calculate_integrals. It has pointers to what I believe are 3 structs being sent into it. I may be wrong about structs. It has been quite a while since actively dealing with C or C++. This is where I start disliking C, with all the pointers and referencing and dereferencing and manual memory management rather than the "easy" way of garbage collection, etc, etc, etc... However, I know that opinion comes from the fact that I do "business logic" applications, not scientific or math applications...

Anyway, if I'm feeling really industrious, sometime over the weekend I may try to get my old Visual Studio 6 installed...and see if I can remember how in the heck to compile / make the thing... .Net makes it real easy to just load the .prj or .sln...


You can do C in any Visual Studio version. I recommend 2005. I like VS a lot. I switched to Mac though and my onIy regret is I have to use xCode now.


Hello
I am on Mac too
I use XCode sometimes to compile things I download
Does this project have a XCode project for the app?
I would also like to help optimize this app, I can recognize that from the above example dividing by d and then multiplying by d is an unnecessary and therefore wasteful operation!
ID: 5433 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
ProfileDave Przybylo
Avatar

Send message
Joined: 5 Feb 08
Posts: 236
Credit: 49,648
RAC: 0
10 thousand credit badge10 year member badge
Message 5434 - Posted: 10 Oct 2008, 3:39:43 UTC - in response to Message 5433.  

I am not a programmer though, so I'm not too familar on how to interpret the results


I am a programmer, but not one that has ever really had to deal with performance profiling and tuning of an application. I see that it spent a lot of time in what I had gone back up to earlier today, calculate_integrals. It has pointers to what I believe are 3 structs being sent into it. I may be wrong about structs. It has been quite a while since actively dealing with C or C++. This is where I start disliking C, with all the pointers and referencing and dereferencing and manual memory management rather than the "easy" way of garbage collection, etc, etc, etc... However, I know that opinion comes from the fact that I do "business logic" applications, not scientific or math applications...

Anyway, if I'm feeling really industrious, sometime over the weekend I may try to get my old Visual Studio 6 installed...and see if I can remember how in the heck to compile / make the thing... .Net makes it real easy to just load the .prj or .sln...


You can do C in any Visual Studio version. I recommend 2005. I like VS a lot. I switched to Mac though and my onIy regret is I have to use xCode now.


Hello
I am on Mac too
I use XCode sometimes to compile things I download
Does this project have a XCode project for the app?
I would also like to help optimize this app, I can recognize that from the above example dividing by d and then multiplying by d is an unnecessary and therefore wasteful operation!



Yes, in fact this project does have an xCode project. I think the decision was made that when the new app gets released then we will open up all the code to the community. For now though, the code seems to be floating around out there on the web so if you can find it, grab it and throw it into xCode.
Dave Przybylo
MilkyWay@home Developer
Department of Computer Science
Rensselaer Polytechnic Institute
ID: 5434 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
vraa

Send message
Joined: 6 Mar 08
Posts: 8
Credit: 6,870,220
RAC: 0
5 million credit badge10 year member badge
Message 5435 - Posted: 10 Oct 2008, 3:43:04 UTC - in response to Message 5434.  

I am not a programmer though, so I'm not too familar on how to interpret the results


I am a programmer, but not one that has ever really had to deal with performance profiling and tuning of an application. I see that it spent a lot of time in what I had gone back up to earlier today, calculate_integrals. It has pointers to what I believe are 3 structs being sent into it. I may be wrong about structs. It has been quite a while since actively dealing with C or C++. This is where I start disliking C, with all the pointers and referencing and dereferencing and manual memory management rather than the "easy" way of garbage collection, etc, etc, etc... However, I know that opinion comes from the fact that I do "business logic" applications, not scientific or math applications...

Anyway, if I'm feeling really industrious, sometime over the weekend I may try to get my old Visual Studio 6 installed...and see if I can remember how in the heck to compile / make the thing... .Net makes it real easy to just load the .prj or .sln...


You can do C in any Visual Studio version. I recommend 2005. I like VS a lot. I switched to Mac though and my onIy regret is I have to use xCode now.


Hello
I am on Mac too
I use XCode sometimes to compile things I download
Does this project have a XCode project for the app?
I would also like to help optimize this app, I can recognize that from the above example dividing by d and then multiplying by d is an unnecessary and therefore wasteful operation!



Yes, in fact this project does have an xCode project. I think the decision was made that when the new app gets released then we will open up all the code to the community. For now though, the code seems to be floating around out there on the web so if you can find it, grab it and throw it into xCode.

Interesting!
I was able to find the xcode project, thanks!

I am glad you have Mac compatibility :)
ID: 5435 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Bigred
Avatar

Send message
Joined: 23 Nov 07
Posts: 33
Credit: 300,042,542
RAC: 0
300 million credit badge10 year member badge
Message 5436 - Posted: 10 Oct 2008, 7:38:16 UTC

I don't know if this helps, but you can get a free version of Microsoft visual studio here.

http://www.microsoft.com/express/vc/
ID: 5436 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Milksop at try

Send message
Joined: 1 Oct 08
Posts: 106
Credit: 24,162,445
RAC: 0
20 million credit badge10 year member badge
Message 5458 - Posted: 13 Oct 2008, 19:00:57 UTC

Just to mention it here, I posted some suggestions in the code discussion forum that will increase the performance by a factor of 30 or more. I hope the project will look into it and will implement it as fast as possible.
ID: 5458 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Previous · 1 · 2

Message boards : Number crunching : Source code improvement discussion

©2020 Astroinformatics Group