Logo
Explore Help
Register Sign In
External/nuclei
1
0
Fork 0
You've already forked nuclei
mirror of https://github.com/projectdiscovery/nuclei.git synced 2025-12-18 22:55:25 +00:00
Code Issues Packages Projects Releases Wiki Activity
nuclei/pkg/protocols/common/protocolstate/memoizer.go

16 lines
232 B
Go
Raw Normal View History

Transparent Memoization via func Annotation (#4742) * initial implementation with manual code generation * testing generation * refactor to package methods + auto memoize * more memos * fixing signatures * refactor * adding gen util * adding util * regenerate memoized files --------- Co-authored-by: Tarun Koyalwar <tarun@projectdiscovery.io>
2024-03-01 16:10:18 +03:00
package protocolstate
import (
"github.com/projectdiscovery/utils/memoize"
)
var Memoizer *memoize.Memoizer
func init() {
var err error
Memoizer, err = memoize.New(memoize.WithMaxSize(1500))
if err != nil {
panic(err)
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.6 Page: 639ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API