Re: Five Reasons Why Synchronous Networking Is Bad
Re: Five Reasons Why Synchronous Networking Is Bad
- Subject: Re: Five Reasons Why Synchronous Networking Is Bad
- From: james woodyatt <email@hidden>
- Date: Fri, 6 Mar 2009 09:11:43 -0800
On Mar 5, 2009, at 09:33, Jens Alfke wrote:
[...] Both TextMate and Xcode like to stat every single file in every open project, whenever the app becomes active. This made working with my normal 5,000-file projects impossible (I had to kill TextMate after it had been spinning for several minutes), and even using small projects with a dozen files caused the app to spin for several seconds every time I switched to it. Yuck.
This is one of those cases where the problem isn't really caused by using synchronous interfaces to the filesystem so much as by excessively eager evaluation.
I have projects with 100k+ files in them that are simply unusable, even on fast, locally attached volumes, because of this basic class of problem. The basic rule of interactive programming to keep in mind here is this: don't waste valuable time with unnecessary computation. (I'm sure some famous computer scientist has a pithy quote I could drop to that effect, but I'm not going to go looking for one right now. Sorry.)
-- member of technical staff, communications engineering
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden