On Dec 23, 2007, at 12:18 PM, Stéphane Ducasse wrote:
Stef and Hani,
please do not use below code fragment in the importer for each class you visit, this would perform O(n^2). Rather follow my suggestion to visit each literal node each method, which performs linear.
You mean by going over all the methods of the **image**? Then in that case we would have to change the logic of the importer because right we only iterate on a subset of the image (visit their AST). and now we would have to perform something extra because we are interested in the references that are even outside of the subset under analysis.
BTW hani you should not mark as stub all the references you would get because some of them can be in the program under extraction.
So may be we should add a postExtraction phase to the importer -to check all the methods of the image -check that there are doing a reference to one of the classes we already imported
I will see what I can do there.
Adrian is it what you had in mind?
Stef _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev