Pop-Up Thingie
Sidebar
>>> Magnum BBS <<<
Home
Forum
Files
Dark
Log in
Username
Password
Sidebar
Forum
Usenet
COMP.LANG.HASKELL
how to be faster and less memory in this case?
From
meInvent bbird
@21:1/5 to
All
on Thu Jul 21 01:02:49 2016
*Main> let true3print = [(peval (replacewithoriginalformula (replacewithoriginalformula (fst (bb3true!!i)) bb2map) bb1map), isInfixOf "M8" (peval (replacewithoriginalformula (replacewithoriginalformula (fst (bb3true!!i)) bb2map) bb1map))) | i <- [0..(
99999-1)]]
*Main> let true3M8 = [ x | (x,True) <- true3print ]
*Main> true3M8
when it run, it used over 880MB memory and still increasing memory
i guess it need run in cloud, however cloud only has large memory
how about speed?
true3M8 is not a file
it load a very long time, can spark haskell help it faster? or spark haskell can only read file
i discover length a list also consume large memory and slow when data is large how to be faster?
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)
Who's Online
System Info
Sysop:
Keyop
Location:
Huddersfield, West Yorkshire, UK
Users:
296
Nodes:
16 (
2
/
14
)
Uptime:
61:29:36
Calls:
6,654
Files:
12,200
Messages:
5,331,533