www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/29/07:26:06

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Optimization
Date: Wed, 27 Nov 1996 09:14:44 -0500
Organization: Cornell University
Lines: 19
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <329C4CD4.7474@cornell.edu>
References: <57hg9b$or5 AT kannews DOT ca DOT newbridge DOT com>
NNTP-Posting-Host: 128
Mime-Version: 1.0
To: Glen Miner <gminer AT Newbridge DOT COM>
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> djgpp? I mean, right now I have a 9x9 array of bytes, and try to index 
> all

you might be better off just using ints (32 bits) instead of 8, or
worse, 16 bit quantities. 

> Since this code _is_ a port, I have noticed some data conversion too. > An
> int is no longer 16 bits long. Since I don't really need a 32 bit int > in
> the core code would it help at all for me to change things to "short
> unsigned int"s?
>

most probably changing things from 32 bit quantities to 16 bit
quantities will make your program run slower because of the extra
indexing required.

did you actually profile your code to see where the bottlenecks are?

sinan

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019