concurrency
Posted: Fri Aug 07, 2009 2:44 pm
by johnmunro >> Mon, 21 Jul 2003 17:02:52 GMT
Is there any way of getting more than one thing to happen at the same time in Jade?
The current issue is the loading time of a form - there is information on the form that cannot be precalculated and stored, so pretty much has to be generated when the form is loaded, but this adds four seconds to the form's loading time. As form loading time is one of the things users notice most, we would like to reduce this as much as possible.
The thought ocurred to me that the information doesn't need to be on the form the instant it's loaded, but the form does need to be responsive right away. So if we could have something like a background thread running which added the information to the form as and when when it's finished calculating it, this would be pretty much ideal.
My first thought was to use notifications, but in my test app the notification code seemed to either wait until the main action is complete, or to stop the main action until the notification code was complete...
Any ideas?
--
John Munro
Synergist Limited - Home of FileVision(TM)
The Bioscience Innovation Centre
Cowley Road, Cambridge, UK
CB4 0DS
Telephone: +44 (0) 1223 478200
Fax: +44 (0) 1223 477969
Email: john.munro@filevision.com
Web: http://www.filevision.com
The contents of this communication are confidential and are only intended to be read by the addressee. We apologize if you receive this communication in error and ask that you contact Synergist Limited immediately to arrange for its return. The use of any information contained in this communication by an unauthorized person is strictly prohibited. Synergist Limited cannot accept responsibility for the accuracy or completeness of this communication as it is being transmitted over a public network. If you suspect this message may have been intercepted or amended, please inform Synergist Limited.
Is there any way of getting more than one thing to happen at the same time in Jade?
The current issue is the loading time of a form - there is information on the form that cannot be precalculated and stored, so pretty much has to be generated when the form is loaded, but this adds four seconds to the form's loading time. As form loading time is one of the things users notice most, we would like to reduce this as much as possible.
The thought ocurred to me that the information doesn't need to be on the form the instant it's loaded, but the form does need to be responsive right away. So if we could have something like a background thread running which added the information to the form as and when when it's finished calculating it, this would be pretty much ideal.
My first thought was to use notifications, but in my test app the notification code seemed to either wait until the main action is complete, or to stop the main action until the notification code was complete...
Any ideas?
--
John Munro
Synergist Limited - Home of FileVision(TM)
The Bioscience Innovation Centre
Cowley Road, Cambridge, UK
CB4 0DS
Telephone: +44 (0) 1223 478200
Fax: +44 (0) 1223 477969
Email: john.munro@filevision.com
Web: http://www.filevision.com
The contents of this communication are confidential and are only intended to be read by the addressee. We apologize if you receive this communication in error and ask that you contact Synergist Limited immediately to arrange for its return. The use of any information contained in this communication by an unauthorized person is strictly prohibited. Synergist Limited cannot accept responsibility for the accuracy or completeness of this communication as it is being transmitted over a public network. If you suspect this message may have been intercepted or amended, please inform Synergist Limited.