-
Book Overview & Buying
-
Table Of Contents
qooxdoo Beginner's Guide
Object pooling is a well-known technique to minimize the creation of objects that take a considerable amount of time in the construction and that consume heavy resources.
Creating complex widgets is very expensive as it takes maximum computation time and consumes much memory. Disposing of such widgets is also very cumbersome, and it is time-consuming to dispose of all the internal widgets of the complex widget. Furthermore, object disposing in JavaScript does not guarantee that the used memory is freed in a timely manner. Especially, IE is known to run the garbage collector only on certain events such as minimizing the browser window and so on. To reduce these timings, all the reusable objects should be pooled for better performance.
qooxdoo provides a utility class called qx.util.ObjectPool for managing objects in the pool. ObjectPool is mainly used to pool and reuse the window object or a well designed form object. However, it could also be used to pool instances of any...
Change the font size
Change margin width
Change background colour