Here is what I do in a nutshell
omcore.File.list(fq.client, file_repository=dvr, limit=1, from_index=0)
this takes 20+ seconds, getting a single file record, reliably (median 25s). For comparison, querying for all dataset versions of a particular dataset takes less than a second over the same connection.
Within the ranges a tested the value of limit has no impact on the latency. Even when moving from_index to a value larger than the number of files in the repository (to get an empty result list), it takes the same time.
Is there a faster way to get a file listing? Maybe some kind of iterator?