FacebookTwitter
Hatrack River Forum   
my profile login | search | faq | forum home

  next oldest topic   next newest topic
» Hatrack River Forum » Active Forums » Books, Films, Food and Culture » New ways to define slow

   
Author Topic: New ways to define slow
King of Men
Member
Member # 6684

 - posted      Profile for King of Men   Email King of Men         Edit/Delete Post 
Recompile the whole lot of code with -g; run in gdb; set a hardware watchpoint... and the code is doing a neg-log-likelihood fit over half a million events to start with.
Posts: 10645 | Registered: Jul 2004  |  IP: Logged | Report this post to a Moderator
Elmer's Glue
Member
Member # 9313

 - posted      Profile for Elmer's Glue   Email Elmer's Glue         Edit/Delete Post 
Well that just makes sense.
Posts: 1287 | Registered: Apr 2006  |  IP: Logged | Report this post to a Moderator
King of Men
Member
Member # 6684

 - posted      Profile for King of Men   Email King of Men         Edit/Delete Post 
...and then discover that the standard script actually sets LD_LIBRARY_PATH to include the default libraries, so that the debug libraries I have spent a day getting all my other code to work nicely with are not in fact being linked in. Take steps to avoid this. Learn still more about slowness.
Posts: 10645 | Registered: Jul 2004  |  IP: Logged | Report this post to a Moderator
King of Men
Member
Member # 6684

 - posted      Profile for King of Men   Email King of Men         Edit/Delete Post 
...make some progress: The variable I've been watching is set to NaN because of calls from the Deep Libraries. In particular, at some point the aptly-named array 'fU' is filled with NaNs and then passed around. Truly, whoever coded this bit had a deep understanding of what he was doing.
Posts: 10645 | Registered: Jul 2004  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
Ah, fun in the land of academic programming.

At least I'm assuming the people who wrote this were willing to use functions, unlike a certain fortran programmer I've worked with?

Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
C3PO the Dragon Slayer
Member
Member # 10416

 - posted      Profile for C3PO the Dragon Slayer           Edit/Delete Post 
What language is this in? I'm not familiar with that terminology.
Posts: 1029 | Registered: Apr 2007  |  IP: Logged | Report this post to a Moderator
HollowEarth
Member
Member # 2586

 - posted      Profile for HollowEarth   Email HollowEarth         Edit/Delete Post 
I'm pretty sure its C.
Posts: 1621 | Registered: Oct 2001  |  IP: Logged | Report this post to a Moderator
King of Men
Member
Member # 6684

 - posted      Profile for King of Men   Email King of Men         Edit/Delete Post 
quote:
Originally posted by fugu13:
Ah, fun in the land of academic programming.

At least I'm assuming the people who wrote this were willing to use functions, unlike a certain fortran programmer I've worked with?

They even organise, if that's the word, their functions into classes. Glorified namespaces, really, but it's a start. Anyway, it's not really their fault, TMinuit is a straight C++ port of an older Fortran library.
Posts: 10645 | Registered: Jul 2004  |  IP: Logged | Report this post to a Moderator
Nighthawk
Member
Member # 4176

 - posted      Profile for Nighthawk   Email Nighthawk         Edit/Delete Post 
quote:
Originally posted by C3PO the Dragon Slayer:
What language is this in? I'm not familiar with that terminology.

I'm a programmer and I don't know what he's saying.

Must be lack of sleep...

Posts: 3486 | Registered: Sep 2002  |  IP: Logged | Report this post to a Moderator
T:man
Member
Member # 11614

 - posted      Profile for T:man   Email T:man         Edit/Delete Post 
I got a C++ once...
Posts: 1574 | Registered: May 2008  |  IP: Logged | Report this post to a Moderator
Magson
Member
Member # 2300

 - posted      Profile for Magson   Email Magson         Edit/Delete Post 
I still like the definition of "eternity" as being 4 blondes pulling up to a 4-way stop at the same time.
Posts: 1323 | Registered: Aug 2001  |  IP: Logged | Report this post to a Moderator
   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Hatrack River Home Page

Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2