atom: don't malloc every node separately
authorRan Benita <ran234@gmail.com>
Mon, 2 Dec 2013 15:13:50 +0000 (17:13 +0200)
committerRan Benita <ran234@gmail.com>
Mon, 2 Dec 2013 15:41:49 +0000 (17:41 +0200)
commit9a3c115be045189aa8b688d1cf9468488df4a491
tree809c91f98bf93a75a4cb3be8f11b799e934a0720
parentb246edc688228ef5149e396d2ded8341cc60e748
atom: don't malloc every node separately

Instead of having a darray of pointers to malloc'ed atom_node's, make it
a darray of atom_node's directly.

This makes the code a bit simpler, saves on some malloc's, and the
memory gain/loss even out.

Unfortunately, we are no longer Three Star Programmers ;(
http://c2.com/cgi/wiki?ThreeStarProgrammer

Signed-off-by: Ran Benita <ran234@gmail.com>
src/atom.c