I decided to show everyone what the traderoute result page looks like since I am almost ready to reset everything.
This is a port to port trade. As you can see it doesn't display every single trade that was made. It displays the starting amounts and prices for both ports and the ending prices and amounts after the trades have completed.
It also gives totals for everything that was sold and bought and the final profit or costs.
And it is damned fast.
Take a close look at the example.
That traderoute was executed 1,500 times.
You would virtually lockup the server and wait forever for 1,500 trade to complete on the 0.21 code. Now it is almost instant.
The code is still rough and contains a ton of checks and things from testing but I am not going to worry about cleaning it up until we get close to releasing it for downloading. It can be sped up alot more. Right now it is only making from 7-15 queries depending upon how many items are availible at the ports. That's only 7-15 queries no matter how many trades are performed for a traderoute. The 1,500 trade example only executed from 7-15 queries.
The 0.21 traderoute code would execute 25-30 queries for
every trade! So if you wanted to run a 1,500 trade traderoute it would execute 37,000-40,000+ queries. HUGE problem since alot of hosts limit alot of virtual servers to 100,000 queries an
HOUR or less. Even a 50 trade traderoute would take 1,300+ queries to execute. That is just plain horrible programming (not our fault).
I am damned close to being able to reset the 0.30 test games so everyone can play with the new toys.