add various optimizations

This commit is contained in:
Redo0
2021-06-05 17:37:52 -05:00
parent bdcf2b384a
commit 5b8a1ea850
6 changed files with 71 additions and 32 deletions

View File

@@ -1,4 +1,6 @@
local ffi = FFI
PortTypes = {
output = 0,
input = 1,
@@ -17,13 +19,15 @@ Port = {}
function Port.new(type, direction, position, causeupdate, idx)
local o = {
--state = ffi.new("long long", 0),
state = 0,
group = nil,
type = type,
direction = direction,
position = position,
causeupdate = causeupdate,
state = 0,
gate = nil,
group = nil,
idx = idx,
}
return o