aboutsummaryrefslogtreecommitdiff
path: root/statement.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-07-31 13:13:15 +0700
committerShulhan <ms@kilabit.info>2022-07-31 13:13:15 +0700
commit2b41da1528469f97741425ddfe0ddf357ba7e783 (patch)
tree81ca370365fce5184d1ed390e69d2bab87b9863e /statement.go
parentd9e30b406843cb0b72b62fd8105812146151ee3a (diff)
downloadawwan-2b41da1528469f97741425ddfe0ddf357ba7e783.tar.xz
all: realign some structs to minimize memory usage
* Request: from 128 to 96 bytes (-32 bytes) * Session: from 176 to 160 bytes (-16 bytes) * Statement: from 56 to 48 bytes (-8 bytes) * session_test.go:24:13: struct with 48 pointer bytes could be 40 * statement_test.go:13:13: struct with 32 pointer bytes could be 16
Diffstat (limited to 'statement.go')
-rw-r--r--statement.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/statement.go b/statement.go
index 3da8e71..d4987f0 100644
--- a/statement.go
+++ b/statement.go
@@ -23,10 +23,10 @@ const (
// Statetement contains parsed raw line from the script.
type Statement struct {
- kind int
cmd string
args []string
raw []byte
+ kind int
}
// ParseStatement create and initialize new Statement from raw line.