OnlineWoerterBuecher.de
Internes

Lexikon


space leak


A data structure which grows bigger, or lives longer, than might be expected. Such unexpected memory use can cause a program to require more garbage collections or to run out of heap. Space leaks in functional programs usually result from excessive laziness. For example, the Haskell function sum [] = 0 sum (x:xs) = x + sum xs when applied to a list will build a chain of closures for the additions and only when it reaches the end of the list will it perform the additions and free the storage. Another example is the function mean l = sum l / length l The sum function forces the entire list l to be evaluated and built in the heap. None of it can be garbage collected until the length function has consumed it.

In addition suitable contents:
[ = ] [ ad ] [ ag ] [ ai ] [ al ] [ am ] [ an ] [ app ] [ ar ] [ arc ] [ as ] [ at ] [ au ] [ az ] [ b ] [ ba ] [ be ] [ bi ] [ ca ] [ ch ] [ chain ] [ cl ] [ closure ] [ co ] [ con ] [ cons ] [ data ] [ data structure ] [ dd ] [ du ] [ ec ] [ ed ] [ ee ] [ er ] [ es ] [ expect ] [ fi ] [ file ] [ fo ] [ for ] [ fr ] [ free ] [ function ] [ functional ] [ functional program ] [ ga ] [ garbage collect ] [ garbage collection ] [ ge ] [ gh ] [ gr ] [ gt ] [ h ] [ heap ] [ hr ] [ ht ] [ id ] [ ie ] [ il ] [ in ] [ io ] [ ir ] [ is ] [ it ] [ ke ] [ la ] [ laziness ] [ ld ] [ leak ] [ Lex ] [ li ] [ list ] [ lt ] [ lu ] [ ly ] [ memory ] [ mo ] [ mod ] [ module ] [ mp ] [ N ] [ na ] [ nc ] [ ne ] [ ng ] [ nl ] [ no ] [ ns ] [ om ] [ pa ] [ pe ] [ perf ] [ ph ] [ pl ] [ pr ] [ program ] [ query ] [ rc ] [ re ] [ ro ] [ row ] [ ru ] [ run ] [ S ] [ se ] [ si ] [ sk ] [ st ] [ storage ] [ struct ] [ su ] [ sum ] [ T ] [ th ] [ to ] [ tr ] [ ua ] [ um ] [ us ] [ va ] [ ve ] [ ws ]






Go Back ]

Free On-line Dictionary of Computing

Copyright © by OnlineWoerterBuecher.de - (3756 Reads)

All logos and trademarks in this site are property of their respective owner.

Page Generation in 0.1871 Seconds, with 17 Database-Queries
Zurück zur Startseite