Nathan (gemsling) wrote,
Nathan
gemsling

Computing cost and elapsed time

Okay, I admit that opening a file 14334 times to see if it has a line matching the current item may not be the most efficient thing to do. In hindsight, reading the whole 2396 line data set (432 Kb) into memory might have been a better thing to do. *Taps watch*

3200 lines done so far. Time to check that I'm not "while"ing my way through every line after a match is found... Hmm, it seems that I am. Just in case an item is in there twice, though it shouldn't be. Meh. I think I'll leave it, just in case.
Tags: tech
Subscribe

  • Dream: Heath's birthday/gathering

    I just attended the most incredible 21st for a friend I haven't seen for years. (Or was it just a gathering if some kind? After all, he is now almost…

  • Dream: scrap metal

    In a dream this morning, we (whoever that may be) were involved in some sort of dodgy operation, collecting and recycling the metal components of…

  • Dream: Presidential bungalow

    In this morning's dream, the two hottest couples in the world were staying in our bungalow. News hot, not body hot. Barack and Michelle Obama, plus…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment