Skip to content

Commit

Permalink
Decrease prf cost, clarify change
Browse files Browse the repository at this point in the history
15 ops to call lambda -> 10 ops
  • Loading branch information
Vurv78 committed Jan 2, 2024
1 parent 274325d commit 8d31764
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/entities/gmod_wire_expression2/base/compiler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,9 @@ local CompileVisitors = {
function(args)
local s_scopes, s_scope, s_scopeid = state.Scopes, state.Scope, state.ScopeID

state.prf = state.prf + 15
-- Not using `self.scope.data.ops` in order to add prf when builtin functions call lambdas.
-- This behavior may change.
state.prf = state.prf + 10

local scope = { vclk = {} }
state.Scopes = inherited_scopes
Expand Down

0 comments on commit 8d31764

Please sign in to comment.