About Integer / Word values...

Dedicated Forum for developers of programs/utilities. To announce new or updated products, to share knowledge and ideas for development.

Moderator: CrazySchmidt

About Integer / Word values...

Postby MaXMhZ on Wed Dec 22, 2004 8:15 pm

If I use a word value instead of Integer in Turbo Pascal/Delphi 7...

They get handles MUCH faster...

Is this true in other languages too ?
Since it all runs more or less on the same hardware - I would suspect so...
Image

Waste no more time arguing what a good man should be. Be one.-Marcus Aurelius
NWS Online Shop
User avatar
MaXMhZ
Site Admin
 
Posts: 1188
Joined: Fri Dec 10, 2004 11:23 am
Location: NL

...

Postby WWSensei on Fri Dec 24, 2004 9:07 pm

Would depend on whether the OS and patform define a Word as 2 bytes and an integer as 2 or 4. I tend to stay away from using WORD or DWORD as those are generally specific to Windows and not very portable (C++ guy here).

Also, generally WORD is really an unsigned int rather than a normal int which could also explain the difference.
WWSensei
Flight Sergeant
 
Posts: 88
Joined: Sun Dec 12, 2004 2:53 pm


Return to Developers Central

Who is online

Users browsing this forum: No registered users and 1 guest

cron