storage/filesystem: fold mmap optimisations into storage/filesystem

Đang mở
#2,492 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
backend

Hướng nghiên cứu

Start by reading the storage/filesystem/mmap package and compare its PackScanner and mmap-based object lookup with storage/filesystem and internal/packhandle. Review the duplicated idx/rev lookup and object-resolution paths, then determine whether the package should be folded into storage/filesystem or moved to x/storage; the issue leaves that design decision open.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

We currently have two separate mmap code paths for reading packs:

  1. The default storer (storage/filesystem → internal/packhandle): it reads mmap-backed files when the caller builds the billy fs with osfs.WithMmap().
  2. storage/filesystem/mmap: a standalone PackScanner that mmaps .pack/.idx/.rev itself (unix.Mmap, MAP_SHARED), re-implements idx fanout/offset lookup and rev lookup, and resolves objects through its own ondemandObject and zlib/delta handling.

Before the v6 release, let's review storage/filesystem/mmap and either fold it into storage/filesystem or move it to x/storage.

Ngôn ngữ chính
Go
Star
7.9k
Fork
1.1k
Merge trung bình
4 ngày 19 giờ
Pull request đã merge (30 ngày)
34

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của go-git/go-git

Tất cả issue của go-git/go-git

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.