Jaa


Accelerating File Operations with the Windows Indexer

The indexer is in MSDN magazine this November! I cover ways that you can improve the performance of the StorageFile/StorageFolder APIs using the indexer in UWP app as well as cover a few best practices that should be used with every app depending on the indexer.

If you have any questions or topics you'd like a deeper dive on, let me know. This blog doesn't have a word count so I can wax poetically for as long as needed

Comments

  • Anonymous
    November 24, 2015
    Your article was very interesting to read. Thanks. Question: I'm using the StorageFileQueryResult.GetFilesAsync(int, int) method. But I need only the file names (StorageFile.Path). Is there a way to get this information without the need to create the costly StorageFile objects?

  • Anonymous
    November 30, 2015
    @jbe There isn’t a nice, official method to do that, but it might be worth checking if using FileInformationFactory to create a bunch of FileInformation objects is faster. I haven’t had a chance to bench mark it (and will when time allows) but I believe FileInformation objects may return faster than StorageFiles if you are only looking for metadata