Quantcast
Channel: The Old New Thing
Viewing all articles
Browse latest Browse all 24428

re: IShellFolder::BindToObject is a high-traffic method; don't do any heavy lifting

$
0
0

> Validating existence on bind doesn't really buy you much anyway, because the server might go down after the bind succeeds but before the Enum­Objects call, so clients have to be prepared anyway for the possibility of a successful bind but a failed enumeration.

Me, on phone to Wal-Mart: I want to buy a king-sized mattress, but before I drive out there, do you have any in stock?

Wal-Mart (immediately): oh, yeah, sure.

Me: you didn't even go look!

Wal-Mart: well, even if I did go look, we might sell them all before you get to the store, so you have to be prepared anyway for the possibility of a successful phone check but a failed in-store check... so I just always say we have everything in stock, which vastly improves my calls-handled-per-hour.


Viewing all articles
Browse latest Browse all 24428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>