Title :
A Method of Optimizing Django Based on Greedy Strategy
Author :
Jian Chou ; Lin Chen ; Hui Ding ; Jingxuan Tu ; Baowen Xu
Author_Institution :
Dept. of Comput. Sci. & Technol., NanJing Univ., Nanjing, China
Abstract :
Django on Python does well in agile web development. Python is dynamic programming language, as is known, its runtime efficiency is low. the question is how it will affect Django´s efficiency. This Paper answered the question from the angle of memory optimization, by improving the efficiency of Python in memory use, we will see how it will affect django. Python manages non-container objects with the technology of memory pool, after a consequence of allocate and free operations, it will produce memory fragment, and the garbage collection module can hardly handle it. This paper proposed a new non-container object management greedy algorithm, it can minimize the probability of generating fragments, thus the garbage collection module can collect garbage non-container objects in time. We conduct our experiment on the benchmark of an open-source project named Unladen-Swallow. When Django renders a template, it will save about 10% memory, with almost the same time consuming.
Keywords :
programming languages; software prototyping; storage management; Django; Python; Unladen-Swallow; agile Web development; dynamic programming language; garbage collection module; greedy strategy; memory fragment; memory optimization; memory pool; noncontainer object management; open-source project; runtime efficiency; Containers; Dynamic programming; Educational institutions; Greedy algorithms; Memory management; Optimization; Resource management; dynamic programming language; garbage collection; memory pool; optimization; web framework;
Conference_Titel :
Web Information System and Application Conference (WISA), 2013 10th
Conference_Location :
Yangzhou
Print_ISBN :
978-1-4799-3218-4
DOI :
10.1109/WISA.2013.41