Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit 3d4a9ef

Browse files
authored
Ingest performance improvements (#1028)
This PR can be reviewed commit by commit. It includes 4 improvements: - **Use go-json insead of standard JSON library** - **Add regexp cache** - **Remove remarshalling** - **Remove remarshalling - continued** Maybe I should split them into separate PRs. --------- Signed-off-by: Rafał Strzaliński <[email protected]>
1 parent 73218ff commit 3d4a9ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+132
-113
lines changed

quesma/ab_testing/collector/diff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package collector
44

55
import (
66
"crypto/sha1"
7-
"encoding/json"
87
"fmt"
8+
"github.com/goccy/go-json"
99
"quesma/jsondiff"
1010
"quesma/quesma/types"
1111
)

quesma/ab_testing/collector/fanout.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ package collector
55
import (
66
"bytes"
77
"context"
8-
"encoding/json"
98
"fmt"
9+
"github.com/goccy/go-json"
1010
"net/http"
1111
"quesma/ingest"
1212
"quesma/logger"

quesma/ab_testing/collector/processors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
package collector
44

55
import (
6-
"encoding/json"
76
"fmt"
7+
"github.com/goccy/go-json"
88
"quesma/quesma/types"
99
"regexp"
1010
)

quesma/ast/query_traversal_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
package ast
44

55
import (
6-
"encoding/json"
76
"github.com/elastic/go-elasticsearch/v8/typedapi/types"
7+
"github.com/goccy/go-json"
88
"github.com/stretchr/testify/assert"
99
"github.com/stretchr/testify/require"
1010
"testing"

quesma/buildinfo/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
package buildinfo
44

55
import (
6-
"encoding/json"
76
"fmt"
87
"github.com/coreos/go-semver/semver"
8+
"github.com/goccy/go-json"
99
"net/http"
1010
"time"
1111
)

quesma/clickhouse/table_discovery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ package clickhouse
55
import (
66
"context"
77
"database/sql"
8-
"encoding/json"
98
"errors"
109
"fmt"
10+
"github.com/goccy/go-json"
1111
"quesma/common_table"
1212
"quesma/end_user_errors"
1313
"quesma/logger"

quesma/clickhouse/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package clickhouse
44

55
import (
66
"bytes"
7-
"encoding/json"
87
"fmt"
8+
"github.com/goccy/go-json"
99
"quesma/logger"
1010
"quesma/model"
1111
"strings"

quesma/elasticsearch/index_resolver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package elasticsearch
44

55
import (
66
"context"
7-
"encoding/json"
7+
"github.com/goccy/go-json"
88
"io"
99
"net/http"
1010
"quesma/quesma/config"

quesma/eql/e2e/ingest_integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ package e2e
66

77
import (
88
"bytes"
9-
"encoding/json"
109
"fmt"
10+
"github.com/goccy/go-json"
1111
"log"
1212
"net/http"
1313
"time"

quesma/eql/e2e/query_integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ package e2e
66

77
import (
88
"bytes"
9-
"encoding/json"
109
"fmt"
10+
"github.com/goccy/go-json"
1111
"io"
1212
"net/http"
1313
"quesma/jsonprocessor"

0 commit comments

Comments
 (0)