Avoid unnecessery calls to eblake2

We frequently need identifier of init function. Store it precalculated
in headers.
This commit is contained in:
Artur Puzio
2021-03-22 15:10:15 +01:00
parent 9d81358daf
commit b30f8a2bfd
2 changed files with 5 additions and 3 deletions
+2 -3
View File
@@ -95,9 +95,8 @@ insert_annotation(comment =_Type, Line, Comment, FCode) ->
strip_init_function(#fcode{ functions = Funs,
symbols = Syms } = FCode) ->
Id = symbol_identifier(<<"init">>),
Funs1 = maps:remove(Id, Funs),
Syms1 = maps:remove(Id, Syms),
Funs1 = maps:remove(?FATE_INIT_ID, Funs),
Syms1 = maps:remove(?FATE_INIT_ID, Syms),
FCode#fcode{ functions = Funs1, symbols = Syms1 }.
%%%===================================================================