Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #93 from xDuck/master
Browse files Browse the repository at this point in the history
Fixes high cache miss rate, significant performance increase.
  • Loading branch information
markbates authored May 15, 2020
2 parents c028e66 + efed726 commit d97c60c
Show file tree
Hide file tree
Showing 33 changed files with 36 additions and 35 deletions.
2 changes: 1 addition & 1 deletion cmd/pkger/cmds/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"sort"
"strings"

"github.com/gobuffalo/here"
"github.com/markbates/pkger"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/parser"
"github.com/markbates/pkger/pkging/pkgutil"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/pkger/cmds/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"flag"
"os"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/parser"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/pkger/cmds/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"os"

"github.com/gobuffalo/here"
"github.com/markbates/pkger"
"github.com/markbates/pkger/here"
)

type pathCmd struct {
Expand Down
7 changes: 4 additions & 3 deletions here/here.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type Info = here.Info
type Module = here.Module
type Path = here.Path

var Dir = here.Dir
var Package = here.Package
var Current = here.Current
var Here = here.New()
var Dir = Here.Dir
var Package = Here.Package
var Current = Here.Current
2 changes: 1 addition & 1 deletion internal/maps/files.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/maps/infos.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion parser/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package parser
import (
"encoding/json"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
)

type File struct {
Expand Down
2 changes: 1 addition & 1 deletion parser/include.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"path/filepath"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
)

var _ Decl = IncludeDecl{}
Expand Down
2 changes: 1 addition & 1 deletion parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
"sync"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
)

var defaultIgnoredFolders = []string{".", "_", "vendor", "node_modules", "testdata"}
Expand Down
2 changes: 1 addition & 1 deletion parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/pkging/pkgtest"
"github.com/markbates/pkger/pkging/stdos"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion parser/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strconv"
"sync"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
)

type Source struct {
Expand Down
2 changes: 1 addition & 1 deletion parser/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"
"strings"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
)

var _ Decl = WalkDecl{}
Expand Down
2 changes: 1 addition & 1 deletion pkger.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"
"sync"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/pkging"
"github.com/markbates/pkger/pkging/stdos"
)
Expand Down
2 changes: 1 addition & 1 deletion pkging/embed/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"encoding/hex"
"io"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/internal/takeon/github.com/markbates/hepa"
"github.com/markbates/pkger/internal/takeon/github.com/markbates/hepa/filters"
)
Expand Down
2 changes: 1 addition & 1 deletion pkging/embed/file.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package embed

import (
"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/pkging"
)

Expand Down
2 changes: 1 addition & 1 deletion pkging/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"os"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
)

type File interface {
Expand Down
2 changes: 1 addition & 1 deletion pkging/file_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/pkging"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkging/mem/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"path/filepath"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/pkging"
)

Expand Down
2 changes: 1 addition & 1 deletion pkging/mem/add_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/pkging/mem"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkging/mem/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mem
import (
"encoding/json"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/internal/maps"
"github.com/markbates/pkger/pkging"
"github.com/markbates/pkger/pkging/embed"
Expand Down
2 changes: 1 addition & 1 deletion pkging/mem/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"path/filepath"
"time"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/pkging"
)

Expand Down
2 changes: 1 addition & 1 deletion pkging/mem/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"io/ioutil"
"testing"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion pkging/mem/mem.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"time"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/internal/maps"
"github.com/markbates/pkger/pkging"
)
Expand Down
2 changes: 1 addition & 1 deletion pkging/pkger.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"path/filepath"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
)

type Pkger interface {
Expand Down
2 changes: 1 addition & 1 deletion pkging/pkgtest/load_ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"
"strings"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/pkging"
)

Expand Down
2 changes: 1 addition & 1 deletion pkging/pkgtest/pkgtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"testing"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/pkging"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkging/pkgtest/ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"path/filepath"
"runtime"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
)

type Ref struct {
Expand Down
2 changes: 1 addition & 1 deletion pkging/pkgutil/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io"
"os"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/pkging"
)

Expand Down
2 changes: 1 addition & 1 deletion pkging/pkgutil/stuff.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"strings"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/parser"
"github.com/markbates/pkger/pkging/embed"
"github.com/markbates/pkger/pkging/mem"
Expand Down
2 changes: 1 addition & 1 deletion pkging/stdos/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"path"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/pkging"
)

Expand Down
2 changes: 1 addition & 1 deletion pkging/stdos/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package stdos
import (
"testing"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion pkging/stdos/stdos.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"
"strings"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/internal/maps"
"github.com/markbates/pkger/pkging"
)
Expand Down
2 changes: 1 addition & 1 deletion pkging/wrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"path/filepath"

"github.com/gobuffalo/here"
"github.com/markbates/pkger/here"
)

func Wrap(parent, with Pkger) Pkger {
Expand Down

0 comments on commit d97c60c

Please sign in to comment.