diff options
author | Steve Naroff <snaroff@apple.com> | 2009-10-21 13:56:23 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-10-21 13:56:23 +0000 |
commit | 6a6de8b4fc944ca1bfa4e47c516d049a0d627b0e (patch) | |
tree | 3cd9fdb048843bd8aae56efb65d740a3bc072d3c /lib/Frontend/PCHWriter.cpp | |
parent | 727e268bd2974a7b16af65a5cfdfe47da9ebeb6c (diff) |
Extend clang_getCursor() to take a 'relativeDecl' argument (so speed up searching). Without a 'relativeDecl', the algorithm is n-squared. For example, running the following command on 'Large.m' takes hours without a 'relatvieDecl'.
snaroff% time ../../Debug/bin/c-index-test Large.ast all > Large.out
snaroff% cat Large.m
#import <Cocoa/Cocoa.h>
#import <QuickTime/QuickTime.h>
#import <OpenGL/OpenGL.h>
With a 'relativeDecl', it takes <30 seconds:-)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84760 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHWriter.cpp')
0 files changed, 0 insertions, 0 deletions