Also found in: Dictionary, Thesaurus, Medical, Financial, Idioms, Wikipedia.
To process, usually in a time-consuming or complicated way. Connotes an essentially trivial operation that is nonetheless painful to perform. The pain may be due to the triviality's being embedded in a loop from 1 to 1,000,000,000. "Fortran programs do mostly number crunching."
To reduce the size of a file without losing information by a complicated scheme that produces bit configurations completely unrelated to the original data, such as by a Huffman code. Since such compression usually takes more computations than simpler methods such as run-length encoding, the term is doubly appropriate. (This meaning is usually used in the construction "file crunching" to distinguish it from number crunching.) Use of crunch itself in this sense is rare among Unix hackers.
To squeeze program source to the minimum size that will still compile or execute. The term came from a BBC Microcomputer program that crunched BBC BASIC source in order to make it run more quickly (apart from storing keywords as byte codes, the language was wholly interpreted, so the number of characters mattered). Obfuscated C Contest entries are often crunched; see the first example under that entry.
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)
crunch(1) To process data. See number crunching.
(2) To compress data. See data compression.
Copyright © 1981-2019 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.