Path: utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!sugar!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.lang.c Subject: Re: Source for "integer to ascii" and multiple file search-n-replace Message-ID: <+SV7H_C@xds13.ferranti.com> Date: 28 Nov 90 18:37:36 GMT References: <318@cti1.UUCP> <1990Nov20.014110.16982@ux1.cso.uiuc.edu> <1990Nov26.192218.29782@athena.mit.edu> <1990Nov27.224111.24038@cbnewsm.att.com> Reply-To: peter@ficc.ferranti.com (Peter da Silva) Organization: Xenix Support, FICC Lines: 8 Another thing to consider: if sprintf() is too slow you're probably doing too many conversions. I've run into this in the past in a couple of places (my browser utility on the Amiga, where I'm displaying file dates as the user scrolls the window up and down, for example) and the solution is NOT to hand-code some gibberish but to do something like cache the text and only re-convert it when the value changes. (yep, the old "use a better algorithm" solution) -- Peter da Silva. `-_-' +1 713 274 5180. 'U` peter@ferranti.com