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.
[1]
Michael Lang,et al.
A Survey of Multimedia and Web Development Techniques and Methodology Usage
,
2001,
IEEE Multim..
[2]
Carlos Angel Iglesias,et al.
A comparison model for agile web frameworks
,
2008,
EATIS.
[3]
Toshio Nakatani,et al.
Adding dynamically-typed language support to a statically-typed language compiler: performance evaluation, analysis, and tradeoffs
,
2012,
VEE '12.
[4]
Ray Welland,et al.
A Survey of Web Engineering in Practice
,
2001
.
[5]
Gaël Varoquaux,et al.
Scikit-learn: Machine Learning in Python
,
2011,
J. Mach. Learn. Res..