
#15131: Speed up certain Foldable NonEmpty methods -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: 8.6.1 Component: Core Libraries | Version: 8.2.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime | Unknown/Multiple performance bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4677 Wiki Page: | -------------------------------------+------------------------------------- Comment (by dfeuer): Yours has to hold on to the "and then add one" while calculating the length of the list. Same goes for `max` and `min`. I'll look more later. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15131#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler