Changes between Version 3 and Version 4 of Ticket #12428


Ignore:
Timestamp:
Mar 11, 2011, 2:11:54 AM (9 years ago)
Author:
liucougar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12428 – Description

    v3 v4  
    2828so the performance improvement is about 3x faster when parsing dojo and dijit with the patch than the current version. (the performance improvement is much greater if parsing dojo, dijit and dojox, because the current algorithm has two loops with O2 complexity, and file IO proportional to symbols in the parsed content)
    2929
    30 it does require 3x memory than current approach, which I think is well worth it
     30it does require 3x memory than current approach
    3131
    32 with this patch, parsing dojo, dijit and dojox takes:
     32if dojo, dijit and dojox are parsed, before this patch:
     33{{{
     34#!sh
     35time php generate.php --serialize=xml --store=file dojo dijit dojox
     36real    60m13.970s
     37user    56m41.373s
     38sys     3m19.736s
     39(memory usage 5,828KB  before the script exits)
     40}}}
     41
     42after the patch, parsing dojo, dijit and dojox takes:
    3343{{{
    3444#!sh
     
    3949(memory usage 35,650KB  before the script exits)
    4050}}}
     51
     52it is 13.6x faster while using 6x memory