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

  • Who's better at pulling focus?

    Am I the only one who thinks that Nigella Lawson's least appealing feature is the flirtatious manner she's renowned for? I recently skimmed through…

  • Nine Inch Nails in the suburbs

    I saw Speaking In Tongues last night, the stage play later adapted for the film Lantana. The script is very strong, and I personally loved that the…

  • Where are my fonts! OpenOffice.org PDF woes

    Argh! What's going on? I wrote a letter in OpenOffice and saved a PDF copy – different fonts. So I read the help and learnt to turn on this option:…

  • 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