[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] FreeDiams 0.4 -> GNUmed

From: Eric MAEKER
Subject: Re: [Gnumed-devel] FreeDiams 0.4 -> GNUmed
Date: Mon, 2 Aug 2010 23:04:42 +0200

Le 2 août 10 à 16:31, Jim Busser a écrit :

On 2010-08-02, at 2:53 AM, Eric MAEKER wrote:

I'm working on it...
When ready, why not differentiate "certain intolerances" or "suspected
intolerances", the code is the same (for the drug selector).

I am curious if you could tell me what the job is the CPU is busy with. Is it doing calculations (number crunching) or is it because it has to access many
tables in the database or what is it ?

One drug at time (for all drugs that are shown in the selector):
0) if result in cache return cache (end)
1) get all molecules
2) get all ATC codes that suite the molecules
3) test allergies
3.1) for 7 char ATC
3.2) for < 7 char ATC
3.3) cache result
4) test intolerances --> cache result
4.1) for 7 char ATC
4.2) for < 7 char ATC
4.3) cache result

Ok this have been threaded. All goes know really fine, CPU is working hard, but UI keeps all its fluidity.

That was a really hard work, but not really much code.

Tested with:

<ATCAllergies value ="D10AD02;V03A;B01B;A02BX;H01AA;C01BB01;C01BC04;C02DA01;C09X;C10AX09"/> <ATCIntolerances value="B05B;J06BB;L01AA;M01AA01;M01AB;M02AA15;N02BA;N05AE"/>

That already represent a lot of calculations.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]