Path: utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: lookuptables vs switch(x) Message-ID: <14518@smoke.brl.mil> Date: 17 Nov 90 21:07:37 GMT References: <1351@umvlsi.ecs.umass.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 8 In article <1351@umvlsi.ecs.umass.edu> breck@star.ecs.umass.edu (Liam Breck) writes: >Which is faster? Generally the switch statement will be faster than a search loop. >If I put the switch in its own function how much will that slow things down? How could we possibly know -- you haven't said what system you're using.