The Infolog

A blog of Dynamics AX development tips and tricks

Skip to: Content | Sidebar | Footer

Tag: efficiency

Adding to a container with += vs. ConIns()

29 September, 2013 (01:25) | Dynamics AX | By: Howard Webb

While adding data to the end of a container there can be large savings by using += rather than ConIns. Try the code below and compare the results:   static void Containertest(Args _args) { int                            ticks; Container                con; Random                  random = new Random(); int                            myrandom; int                            i; ;   //Start on […]