[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4586: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4588: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4589: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4590: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
AI Challenge Forums • View topic - C# debugging time out issues

It is currently Tue Oct 23, 2018 9:25 pm Advanced search

C# debugging time out issues

Topics about starter packages, visualizer or any other third party tools.
Please submit new language requests in the Language Request Forum.

Re: C# debugging time out issues

Postby romans01 » Sat Dec 03, 2011 1:38 am

>int[] anArray = new int[100000000];
With array of this size we maybe measure speed between ram & cpu.

Poison of bound checking in c# for math tasks have been disscussed 1 million times, really there is no reason to disscuss it again.

http://stackoverflow.com/questions/1060 ... nd-win32-c
romans01
Major
 
Posts: 31
Joined: Thu Oct 27, 2011 11:23 am

Re: C# debugging time out issues

Postby gnu264 » Sat Dec 03, 2011 11:26 am

@romans01: the speed penalty for array bounds checking is completely irrelevant, since the average bot spends most of its time *not* doing array accesses. If I optimize those parts of my code that aren't actually a speed bottleneck, I'm just wasting my time. Python is orders of magnitude slower than C#, and still some python bots are in the top 100.
gnu264
Captain
 
Posts: 23
Joined: Tue Nov 08, 2011 5:27 pm

Re: C# debugging time out issues

Postby romans01 » Sat Dec 03, 2011 12:37 pm

romans01
Major
 
Posts: 31
Joined: Thu Oct 27, 2011 11:23 am

Re: C# debugging time out issues

Postby gnu264 » Sat Dec 03, 2011 3:41 pm

gnu264
Captain
 
Posts: 23
Joined: Tue Nov 08, 2011 5:27 pm

Re: C# debugging time out issues

Postby Takai » Tue Dec 06, 2011 10:58 pm

Could the nasty timeouts for C# bots be caused by Garbage Collecting?

Mono 2.8 and later comes with a much better GC than the one used in Mono 2.4 which is used on the server,


Didn't get any timeouts when I ran on .Net but on the server it has happened. Tested it on UBuntu with Mono logged the runtimes for each turn. Runtimes were all less than 50 ms per turn before the bot timedout, once it even timed out in the middle of writing to the logfile!

Hopefully Mono will be updated on the server for the next AI-Challenge?

Only remedy I can think of now is cutting back on allocating memory on the heap, try to use structs instead of classes?
Takai
Cadet
 
Posts: 1
Joined: Tue Nov 29, 2011 9:20 am

Re: C# debugging time out issues

Postby vzero » Wed Dec 07, 2011 10:01 pm

vzero
Cadet
 
Posts: 6
Joined: Fri Nov 04, 2011 8:50 pm

Re: C# debugging time out issues

Postby romans01 » Wed Dec 07, 2011 11:01 pm

romans01
Major
 
Posts: 31
Joined: Thu Oct 27, 2011 11:23 am

Previous

Return to Starter Packages & Tools

Who is online

Users browsing this forum: No registered users and 2 guests

cron