Use SIMD base64 everywhere

This commit is contained in:
Kovid Goyal 2026-04-21 11:56:55 +05:30
parent 744ad7438c
commit 3d8a2fbb4f
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
16 changed files with 34 additions and 22 deletions

View file

@ -1,12 +1,13 @@
package at
import (
"encoding/base64"
"encoding/json"
"fmt"
"io"
"os"
"github.com/emmansun/base64"
"github.com/kovidgoyal/kitty/tools/tty"
)

View file

@ -3,15 +3,17 @@
package at
import (
"encoding/base64"
"errors"
"io"
"os"
"strings"
"github.com/emmansun/base64"
"github.com/kovidgoyal/kitty/tools/tty"
"github.com/kovidgoyal/kitty/tools/tui/loop"
"github.com/kovidgoyal/kitty/tools/utils"
"github.com/kovidgoyal/kitty/tools/utils/shlex"
"io"
"os"
"strings"
)
var end_reading_from_stdin = errors.New("end reading from STDIN")

View file

@ -4,13 +4,14 @@ package at
import (
"bytes"
"encoding/base64"
"fmt"
"image"
"io"
"os"
"strings"
"github.com/emmansun/base64"
"github.com/kovidgoyal/kitty/tools/utils/images"
)

View file

@ -4,7 +4,6 @@ package edit_in_kitty
import (
"bytes"
"encoding/base64"
"fmt"
"io"
"io/fs"
@ -12,6 +11,7 @@ import (
"strconv"
"strings"
"github.com/emmansun/base64"
"golang.org/x/sys/unix"
"github.com/kovidgoyal/kitty/tools/cli"

View file

@ -3,13 +3,14 @@
package mouse_demo
import (
"encoding/base64"
"fmt"
"net/url"
"path/filepath"
"strconv"
"strings"
"github.com/emmansun/base64"
"github.com/kovidgoyal/kitty/tools/tty"
"github.com/kovidgoyal/kitty/tools/tui/loop"
)