View Single Post
Old 07-10-2007, 08:52 AM   #14 (permalink)
Tony M
Moderator*
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Buckingham, England
Posts: 2,680
Suggestion

More space saving. Team IDs and Nation IDs and League IDs and Division IDs are all 32-bit integers. The first two (or three could easily be 16-bit integers) and the last one needs only be a byte

Reason

The game allows for 16777216 teams, with a 16 bit field it would still allow 65535 teams to be created (that is the equivalent of 13 leagues with 2 subleagues each of 50 divisions of 50 teams). I can't imagine anyone getting close to 65,000 teams.

The same goes for nations - there's around 220 in the game at the moment. It is fairly possible to take that above 256 but yet again it's unlikely you'll have more than 65535.

League IDs could easily be a byte, though you could have someone wanting to run 256 leagues in their game.

Division IDs do only need to be a byte as the game limits you to only having 50.

This would free up a lot of space across the board as the first three fields certainly do appear in a lot of places.

Priority

Medium
__________________
Tony M
Technical Support Moderator


Tony M is offline