Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Applid [HEAD] Re: [cdt-patch] Patch for Scanner performance

applied
-Andrew



David Daoust/Ottawa/IBM@IBMCA 
Sent by: cdt-patch-admin@xxxxxxxxxxx
03/16/2004 01:30 PM
Please respond to
cdt-patch


To
cdt-patch@xxxxxxxxxxx
cc

Subject
[cdt-patch] Patch for Scanner performance







Here is a patch that addresses some issues with the scanner that I found 
using a performance profiler. 

A full scan of "w32api/windows.h" dropped by 30% with these changes.   

Here are some of the numbers before and after the patch 

Before 
        Scan:  2.2 s 
        Scan + parse: 5.2 s 

After 
        Scan: 1.5 s 
        Scan + parse: 4.4 s 

Note that there are about 100,000 tokens read in the test! 

For comparison, a scan + parse of stdio.h takes about 150ms. 

        - Dave 
[attachment "ScannerPerf.txt" deleted by Andrew Niefer/Ottawa/IBM] 



Back to the top