Skip to content

Commit

Permalink
[Minor] Do not store serialized ANN
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Jul 9, 2019
1 parent 5673dff commit ae98b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/lua/neural.lua
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,6 @@ local function load_new_ann(rule, ev_base, set, profile, min_diff)

if ann then
set.ann = {
ann = ann,
version = profile.version,
symbols = profile.symbols,
distance = min_diff,
Expand All @@ -798,6 +797,7 @@ local function load_new_ann(rule, ev_base, set, profile, min_diff)

local ucl = require "ucl"
local profile_serialized = ucl.to_format(profile, 'json-compact', true)
profile.ann = ann -- To avoid serialization

local function rank_cb(_, _)
-- TODO: maybe add some logging
Expand Down

0 comments on commit ae98b44

Please sign in to comment.