#2442: Heuristics to improve error messages for badly referenced things
----------------------------+-----------------------------------------------
 Reporter:  batterseapower  |          Owner:         
     Type:  proposal        |         Status:  new    
 Priority:  normal          |      Milestone:         
Component:  Compiler        |        Version:  6.9    
 Severity:  normal          |     Resolution:         
 Keywords:                  |     Difficulty:  Unknown
 Testcase:                  |   Architecture:  Unknown
       Os:  Unknown         |  
----------------------------+-----------------------------------------------
Comment (by guest):

 I've solved the performance problem purely by making use of an edit-
 distance algorithm based on bit-vectors. This is /very fast/. For future
 reference, I've actually released it's implementation (plus some other
 edit distances, QuickCheck tests for it all etc) on Hackage
 (http://hackage.haskell.org/cgi-bin/hackage-scripts/package/edit-
 distance).

 My stress test was compiling GHC.hs with the Module import commented out.
 This generates a number of unbound name errors, each of which has to do a
 full scan of the (huge) imported name set. This takes 1 second on my
 modified GHC compared with 0.3 seconds on an unmodified one. If this is
 not an acceptable speed I can pursue the other performance-improving
 possibilities above.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2442#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to