An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:fire: Revert Improve block loading performance on Windows/Linux/macOS amd64 arch Fix https://github.com/siyuan-note/siyuan/issues/9131
Daniel7cd20f999980
diff --git a/kernel/filesys/json_unmarshal.go b/kernel/filesys/json_unmarshal.goindex 339ce65124..b01ab495aa 100644--- a/kernel/filesys/json_unmarshal.go+++ b/kernel/filesys/json_unmarshal.go@@ -14,8 +14,6 @@// You should have received a copy of the GNU Affero General Public License// along with this program. If not, see <https://www.gnu.org/licenses/>.-//go:build !amd64-package filesysimport (@@ -23,10 +21,5 @@ import ()func unmarshalJSON(data []byte, v interface{}) error {- //now := time.Now()- //defer func() {- // elapsed := time.Since(now)- // logging.LogInfof("[go-json] unmarshalJSON took %s", elapsed)- //}()return json.Unmarshal(data, v)}diff --git a/kernel/filesys/json_unmarshal_amd64.go b/kernel/filesys/json_unmarshal_amd64.godeleted file mode 100644index 52983fc854..0000000000--- a/kernel/filesys/json_unmarshal_amd64.go+++ /dev/null@@ -1,39 +0,0 @@-// SiYuan - Refactor your thinking-// Copyright (c) 2020-present, b3log.org-//-// This program is free software: you can redistribute it and/or modify-// it under the terms of the GNU Affero General Public License as published by-// the Free Software Foundation, either version 3 of the License, or-// (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU Affero General Public License for more details.-//-// You should have received a copy of the GNU Affero General Public License-// along with this program. If not, see <https://www.gnu.org/licenses/>.--package filesys--import (- "github.com/bytedance/sonic"- "github.com/goccy/go-json"- "github.com/siyuan-note/logging"-)--func unmarshalJSON(data []byte, v interface{}) (err error) {- //now := time.Now()- defer func() {- if e := recover(); nil != e {- logging.LogWarnf("[sonic] unmarshalJSON failed: %s", e)- err = json.Unmarshal(data, v)- } /*else {- elapsed := time.Since(now)- logging.LogInfof("[sonic] unmarshalJSON took %s", elapsed)- }*/- }()-- err = sonic.Unmarshal(data, v)- return-}diff --git a/kernel/go.mod b/kernel/go.modindex bd9996a04e..1453f91ed2 100644--- a/kernel/go.mod+++ b/kernel/go.mod@@ -17,7 +17,6 @@ require (github.com/PuerkitoBio/goquery v1.8.1github.com/Xuanwo/go-locale v1.1.0github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de- github.com/bytedance/sonic v1.10.0github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86begithub.com/denisbrodbeck/machineid v1.0.1github.com/dgraph-io/ristretto v0.1.1@@ -78,6 +77,7 @@ require (github.com/andybalholm/cascadia v1.3.2 // indirectgithub.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef // indirectgithub.com/aws/aws-sdk-go v1.45.2 // indirect+ github.com/bytedance/sonic v1.10.0 // indirectgithub.com/cespare/xxhash/v2 v2.2.0 // indirectgithub.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirectgithub.com/chenzhuoyu/iasm v0.9.0 // indirect