basho/lager — pull request #37 by Vagabond (2012-01-27 16:29:12+00:00)
Title: Fix atom leak

I adapted this patch from Jason Wagner which removes the code creating dynamic atoms in the parse_transform. Without this patch, adding 1 line to a file and recompiling it would bloat the atom table (because the generated atoms included line numbers). A simple test with lager_test_backend saw the difference between memory(atom_used) grow by 585 bytes (after the file was already loaded):

```
12> X = memory(atom_used).
673491
13> l(lager_test_backend).
{module,lager_test_backend}
14> memory(atom_used) - X.
585
```

After the patch, there was no atom table growth.