Hi Marc,

On 17 août 2010, at 09:45, Marc Puts wrote:

> Hi Jean,
> 
> From my experience, generating an application is a very CPU intense 
> operation. So the main bottleneck is CPU speed, not disk IO. Since you 
> already put the files on a ram disk, I guess the CPU is the only place 
> left to search for improvements. Without changing the generator, that is. ;)
> 

Yes, I was thinking that way before noticing that during a generate, the CPU is 
not 100%.
Would it be possible that my Python implementation doesn't use all available 
CPU ?
I'm on Mac and I didn't install anything, just using default Python 
installation.

Is there any Python option that I can use to reduce time for a generate build ?
For example, allowing more memory ? Would it make sense, is it possible in 
Python ?
Other idea ?

> However, why do you need to generate a build that often? Normally, 
> during development you can generate the source version, which compiles 
> quite fast.
> 

I know it is very unconventional but we are generating all the files composing 
an entire application :
  * js files for the qooxdoo client side,
  * java files for the java backend,
  * ant script.
Nothing to do by hand the that application.

Then, we are using a generated Ant script to go from source code to deployment :
  * injecting database schema,
  * compiling java files,
  * generate build for qooxdoo client side,
  * war file,
  * deploy under JEE container like Tomcat.

We are doing that very often and the classical qooxdoo build time is then part 
of our runtime.
This is because we are doing that automatically : we are developing that 
generator.
We run it often, just like any other developer in the world are running their 
app very often :-)


> Regards,
> Marc
> 
> 
> On 08/16/2010 01:52 PM, Jean-Baptiste BRIAUD -- Novlog wrote:
>> Hi,
>> 
>> I was wondering how I could speed up the generate script.
>> 
>> I just remind that because we are generating all the source code for an 
>> application (qx client, Java server, SQL), that script is launched quite 
>> often.
>> That step (generate build) currently take about 90% of the total time to 
>> create an application (generate files, compile backend, create qooxdoo 
>> application, install database schema, deploying...).
>> 
>> I already set the cache to a folder in a ram disk.
>> It improve speed but I would like more.
>> 
>> So, I did try to put the entire SDK in a ram disk.
>> This is the best IO bandwidth I could think about.
>> 
>> To my surprise the time for a generate build didn't improve.
>> Tests had been done with an empty cache so the difference would be only due 
>> to the SDK in a ram disk.
>> No difference (less than 5%) while the bandwidth of the ram disk is far more 
>> than 5% compare to the HDD.
>> 
>> So, what else could I try to improve that speed, any advices, ideas ?
>> 
>> Thanks !
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by
>> 
>> Make an app they can't live without
>> Enter the BlackBerry Developer Challenge
>> http://p.sf.net/sfu/RIM-dev2dev
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> 
>> 
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to