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

  • CTTS: Nuki Nuki (Nookie?)

    The kids were playing around on YouTube today, and all of a sudden I heard this vibrant pop song playing (of the same ilk as the Crazy Frog), with…

  • CTTS: Sex in the mouths of babes

    "Let's do it like they do on the Discovery channel," sang the kids, loudly, as we wandered around the winery. That's what I get for playing The…

  • Poor Josh: Martians and girls

    Martians I played The War Of The Worlds for the kids this morning. (Specifically Jeff Wayne's musical version thereof.) Josh in particular got…

  • 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