Or how to avoid paying for the overhead of ye olde MS DOS era 8dot3 file names in Delphi (and outside Delphi)

Or how to avoid paying for the overhead of ye olde MS DOS era 8dot3 file names in Delphi (and outside Delphi)
http://www.delphitools.info/2013/11/25/efficient-file-enumeration/

Comments

  1. Thanks for the insight!
    Note to self: Get a faster computer so that Erics page can scroll smoother.

    ReplyDelete
  2. Oliver Holmes Scrolling the page is fast AFAICT on all browsers except the last version of FireFox desktop (which doesn't seem to handle the page's box-shadow very well, but FireFox Mobile has no problem with it)

    ReplyDelete
  3. Eric Grange
    Hehe, that's what I'm using (c: But no worries, it's not the looks or performance that count for me...

    ReplyDelete
  4. Oliver Holmes Should be better now.

    ReplyDelete
  5. Eric Grange
    Aw, thanks! But that really was not necessary :-)

    ReplyDelete
  6. Another good post.

    We needed to delete the files in a directory which were older than N days. My coworker had made the "obvious" solution: get the list of files using TDirectory.GetFiles and then loop through, calling TFile.GetLastWriteTime and delete as needed...

    Turned out this took over ten minutes if the directory was large and on the network. Not cool.

    I rewrote it using a predicate with the GetFiles call, which refuced the runtime to a second, sufficient for our need. I did see that GetFiles was not the most efficient implementation indeed.

    ReplyDelete
  7. I commented on your page. I discovered here that trying to strip 8dot3 names from 4 partitions on two external drives caused FSUTIL to die. No useful data, just the ...has stopped working dialog.

    ReplyDelete

Post a Comment