Commit Graph
8 Commits
Author SHA1 Message Date
Mark Hindess f61a1f5a07 Create *::Geometry::nearest_point_index to speed up shortest_path method.
This fix gives a further 10% speedup on simcop2387's coaster.
2012-06-22 23:12:39 +01:00
Mark Hindess 62eb41b967 Manage flattened endpoint list rather than creating it at every iteration.
Gives an 8% speedup on simcop2387's coaster for me.
2012-06-22 23:12:39 +01:00
Mark Hindess 2ef565fc4d Simplify creation of $n, @x and @y in point_in_polygon test.
Gives 30% speed up on simcop2387's coaster on my laptop and it cuts the
maximum resident set size too.  I know this is going to be replaced but
thought this might be useful in the meantime.
2012-06-16 08:28:37 +01:00
Mark Hindess 2689f49ef8 Remove grep that is effectively repeated. 2012-05-31 18:15:40 +01:00
Mark Hindess b0303c1e3b Allow cli options to use '_' instead of '-'.
This makes it easier to copy and paste options from config files.
2012-05-20 17:01:40 +01:00
Mark Hindess 5a16756aac Avoid undef errors while keeping the debug so root cause can be found. 2012-05-10 22:23:24 +01:00
Mark Hindess 9d85a19b9d Rework fix to use undef correctly. 2012-05-10 19:07:20 +01:00
Mark Hindess 5ebf6a71cd Add FE_NONE with value 0 and increment FE_TOP and FE_BOTTOM to simplify
and correct logic.
2012-05-09 19:57:00 +01:00