// here I do simple processing with the variables read from the file
}
I'm supposed to output a result every million lines; the problem that this thing takes A LONG LONG TIME. It's been weeks so far and it's not done (running on a quad-core opteron).
Anyways, if I don't read the file and instead generate those variables randomly, the program runs very quickly (few minutes to finish).
I tried to output something(say result y) every 100 thousand lines and see how fast it's going and I noticed the following.
The first 10 y's came out quickly (they followed one another in an almost fixed interval of a one second or two), but then the y's started to come out slower and slower. It was like becoming exponentially SLOWER.
I don't know what the problem is. Is it the way I'm reading the file? Is there a buffer somewhere that's getting huge and making things dog slow? I really don't know.
Does anyone have any idea about this?
Thanks
P.S.
I also tried to profile (using gprof ) the program, but did not have luck getting it to work. There was all kids of errors that gprof generated and I'm no mood getting busy with those.
<a title='Condition Guide' href='/content/Condition_and_S hipping_Guide.htm' target='_blank'>Click here to outlook our Condition Guide and Shipping Prices</a>
Washington PostIt's a Big Yes for THE BIG 'C'PR Newswire (seethe release)It produces and distributes programming in every genre, including series, telefilms, theatric releases and family entertainment around the world and for Laura Linney and "The Big C" go to series for Showtimeall 184 advice articles »
C-Extent Radio app highlighted in Apple iTunes StoreRadio Partnership ReportThis includes key Congressional hearings and speeches from subject and world leaders, C-SPAN's day after day Washington Journal call-in program, and other news and and more »
More 'Fritter away' magic? Enter our Media Prognostication ContestUSA Today wire programming will be: a) The launch of Hasbro and Discovery's new means for kids; b) The planned launch of the Oprah Winfrey Network in 2011; c) and more »
Get the facts: Repetition management softwareChiropractic EconomicsNET programmers are working with a “lounging robe” that makes programming easier, but adds an additional layer of computer customs… for everything.
Book on the wall points to Apple tablet, but Jobs must affirm worth buyingTMCnetStill others position it as a companion sift to use while watching television _ the tablet would deliver bumf related to the program airing on the and more »
C Templates
Ultimate C/C++ Programming - Tutorial 1
***Download Links Here*** + Visual Studio***:
___________________ _____________________
READ THIS: All Rude Comments Will Be Blocked and ...
C Templates MEDIA
Black Saturday +day130
Leaky abstractions
"... The Law of Leaky Abstractions is dragging us down ... [0]
Had to capture this on camera. The ATM in a local shopping centre crashed. Might have had something to do with the big hole in the top, I don't know....
Black Saturday +day130
Leaky abstractions
"... The Law of Leaky Abstractions is dragging us down ... [0]
Had to capture this on camera. The ATM in a local shopping centre crashed. Might have had something to do with the big hole in the top, I don't know....
Black Saturday +day130
Leaky abstractions
"... The Law of Leaky Abstractions is dragging us down ..." [0]
Had to capture this on camera. The ATM in a local shopping centre crashed. Might have had something to do with the big hole in the top, I don't...
The gray people are NPCs which chase the players if the NPC is looking at them, the players are within the NPC's attack range and the boolean "hostile" is set to true. If they encounter an obstacle, they will try to go around it.