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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user