Really need help with slowdown in allocation operations. 
Author Message
 Really need help with slowdown in allocation operations.

I have noticed significant slowdowns in JScript in the execution of memory
allocation operations (object creation with properties of those objects
being assigned) when a few megabytes have been previously allocated by the
browser on account of JS memory allocation and aggregation operations.

We notice a linearly increasing execution speed penalty for operations that
allocate memory as the amount of memory that has been allocated and
aggregated increases.  Especially, memory that has been allocated and
aggregated in previous function calls (whether methods or functions) slows
down further allocation operations.  Finally, we notice a significant
penalty for allocating more complex (non-flat) data structures, apparently
linearly increasing as data structure reference depth increases.

*** --> Do you have any tips on how we should code in order to minimize the
above penalties? <-- ***

The slowdowns are indeed significant for our application.

It seems that, once memory is somewhat loaded up, allocating flatter
structures helps a lot.  We wonder why this is, and thought that perhaps
someone on this newsgroup could be of assistance in this matter.

Thanks in advance!
                    - Chris Balz.

Fri, 02 May 2003 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Please help - need workaround for IE5.x JS engine slowdown:

2. Really need help with Script Encoder

3. Sorry, but I REALLY need HELP!



6. Need automate backup operation

7. Need advice on error trapping Jet 4.0/.mdb operations

8. You really need a specialist here!

9. Help, really simple question w/ Regular Expressions

10. Newbie stuck with really simple problem - Please help.

11. Deletefolder does not work after Enumerator allocation

12. Dynamic Page Allocation


Powered by phpBB® Forum Software