Nice/testsuite/compiler/overloading specificity.testsuite,1.10,1.11

Daniel Bonniot <[email protected]> Fri, 19 Aug 2005 16:04:31 +0000
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/testsuite/compiler/overloading
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27857/testsuite/compiler/overloading

Modified Files:
	specificity.testsuite 
Log Message:
Dramatically speedup the "remove non-minimal methods" from the overloading
resolution phase. Use overriding information for nice methods instead of
recomputing the specialization relationship each time. For others (inlined,
retyped methods), cache the results.

This phase goes down from about 30% of overloading resolution to something
negligible. For large enough packages, this translates to about 15% global
compilation speedup.


Index: specificity.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/overloading/specificity.testsuite,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** specificity.testsuite	12 Mar 2005 17:00:27 -0000	1.10
--- specificity.testsuite	19 Aug 2005 16:04:26 -0000	1.11
***************
*** 143,144 ****
--- 143,153 ----
  
  foo(B(I) b) {}
+ 
+ /// PASS
+   /// package a
+   m(int x => false);
+   /// Toplevel
+ public <T> void m(T->boolean) {}
+ public <T, U> void m(T->?U converter) {}
+   /// package b import a
+   m(int x => false);



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf