replace encoding/json with json-iterator everywhere so we get rid of HTML encoding and maybe be faster.

This commit is contained in:
fiatjaf
2024-12-03 00:42:41 -03:00
parent 932361fe8f
commit fd5cd55f6f
12 changed files with 19 additions and 12 deletions

View File

@@ -12,12 +12,15 @@ import (
"github.com/fatih/color"
"github.com/fiatjaf/cli/v3"
jsoniter "github.com/json-iterator/go"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/sdk"
)
var sys = sdk.NewSystem()
var json = jsoniter.ConfigFastest
func init() {
sys.Pool = nostr.NewSimplePool(context.Background(),
nostr.WithUserAgent("nak/b"),