I asked this in the ADUG list, but didn't think to ask here ...

I asked this in the ADUG list, but didn't think to ask here ...

CppCon 2015: Niall Douglas “Racing The File System" - https://www.youtube.com/watch?v=uhRWMGBjlO8

I'm interested in learning more around concurrency, but have not seen this information put forward before.
It discusses the process of guaranteeing atomic, preferably fast, changes to files and the file system.
It is from CppCon 2015, with almost no C++ in it, and surprisingly complimentary to Windows.

I've only watched this one so far ... the same speaker has more recent videos.
Does anyone know of other sources of information around this area - not necessarily in terms of Delphi - but that would be good too.
Perhaps elements of Delphi protect from us some of this ... eg database engine designers have hopefully worked out this sort of thing.

One piece of info near the beginning that I don't know that I've heard before - that deletion in windows is just a promise to remove the file/directory sometime "soon".
(See 8:20 "Deleting a Directory")

Thanks,
Paul McGee
https://www.youtube.com/watch?v=uhRWMGBjlO8

Comments

  1. what if %temp is not on the same disk partition? renaming won't have any benefit here, and it will be dead slow, since it will move/rename be implemented as a copy & delete IIRC

    ReplyDelete

Post a Comment