Improved performance

This commit is contained in:
Eduard Urbach 2024-08-02 11:41:21 +02:00
parent c67056d405
commit 270e7e27a0
Signed by: eduard
GPG key ID: 49226B848C78F6C8
11 changed files with 29 additions and 32 deletions

View file

@ -9,14 +9,15 @@ import (
// Function represents the smallest unit of code.
type Function struct {
register.Machine
Package string
Name string
File *fs.File
Body []token.Token
Functions map[string]*Function
Err error
deferred []func()
count counter
Package string
Name string
UniqueName string
File *fs.File
Body []token.Token
Functions map[string]*Function
Err error
deferred []func()
count counter
}
// counter stores how often a certain statement appeared so we can generate a unique label from it.