• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XCode 3 WO version?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode 3 WO version?


  • Subject: Re: XCode 3 WO version?
  • From: Anjo Krank <email@hidden>
  • Date: Wed, 9 Aug 2006 20:22:19 +0200

Uh, no.

If I had to weigh the programming headaches of having a thread switched out from under me against some meager performance gain, I'd know what to chose. If your fetch takes a long time, then by all means spin it of into another thread and use a WOLongResponse.

And you could do this right now anyway: spin of the thread directly in dispatchRequest, wait for it some time, like 5 seconds and it it hasn't finished, put a ref into some global storage and return a mainly-static refresh page with an URL that include the ref. Then, when this comes in again, check if the thread has finished, rinse, repeat, return the final response if it did.

The main problem is that a session can get checked out only once, so you need the refresh content to be out of the session context.

Cheers, Anjo

Am 09.08.2006 um 20:15 schrieb Mankit Sze:

The method dispatchRequest() is handled by one thread only for Leopard Preview. Although it would be much nicer if the thread can be recycled to do other useful works instead of waiting for a database fetch, which could take a very long time. Agree?

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >XCode 3 WO version? (From: Anjo Krank <email@hidden>)
 >Re: XCode 3 WO version? (From: Mankit Sze <email@hidden>)
 >Re: XCode 3 WO version? (From: Anjo Krank <email@hidden>)
 >Re: XCode 3 WO version? (From: Mankit Sze <email@hidden>)
 >Re: XCode 3 WO version? (From: Chuck Hill <email@hidden>)
 >Re: XCode 3 WO version? (From: Anjo Krank <email@hidden>)
 >Re: XCode 3 WO version? (From: Mankit Sze <email@hidden>)

  • Prev by Date: Re: XCode 3 WO version?
  • Next by Date: Re: Problem with setting Date data in Openbase 9 with a D2W App
  • Previous by thread: Re: XCode 3 WO version?
  • Next by thread: Re: XCode 3 WO version?
  • Index(es):
    • Date
    • Thread