Reduced memory usage
This commit is contained in:
parent
0c1b57b4e4
commit
45e15cdb52
@ -1,7 +1,7 @@
|
||||
package core
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"git.akyoto.dev/cli/q/src/build/asm"
|
||||
"git.akyoto.dev/cli/q/src/build/errors"
|
||||
@ -30,7 +30,11 @@ func (f *Function) CompileCall(root *expression.Expression) error {
|
||||
isSyscall := name == "syscall"
|
||||
|
||||
if !isSyscall {
|
||||
fullName = fmt.Sprintf("%s.%s", pkg, name)
|
||||
tmp := strings.Builder{}
|
||||
tmp.WriteString(pkg)
|
||||
tmp.WriteString(".")
|
||||
tmp.WriteString(name)
|
||||
fullName = tmp.String()
|
||||
_, exists := f.Functions[fullName]
|
||||
|
||||
if !exists {
|
||||
|
Loading…
Reference in New Issue
Block a user