Keep an object's id in the record

We have the information there anyway, so don't make us allocate a new
binary every time.
This commit is contained in:
Carlos Martín Nieto
2013-06-05 22:15:40 +02:00
parent 525fae1ee6
commit d21d2cb9b0
5 changed files with 16 additions and 18 deletions

View File

@@ -14,6 +14,5 @@ defmodule Geef.Object do
def lookup(repo, id, type), do: :geef_obj.lookup(repo, id, type)
def id(obj), do: :geef_obj.id(obj)
end