Repository navigation
Fix: 스파스 파일은 예열해도 묶음이 바뀔 때마다 앞서 읽은 캐시가 버려짐 - #194
Merged
Merged
Conversation
스파스 속성 파일은 매핑을 새로 만드는 순간 그 파일의 캐시가 파일 전체에 걸쳐 버려졌습니다. 예열 스트림은 묶음마다 파일을 새로 매핑해 읽으므로, 스파스 파일의 범위가 여러 묶음에 걸치면 마지막 묶음만 캐시에 남고 재예열도 매번 디스크에서 다시 읽었습니다. - 예열 스트림은 스파스 속성 파일의 범위를 매핑 없이 버퍼드 읽기로 읽고, 나머지는 이전과 같이 읽음 - 묶음의 범위 목록을 스파스 여부가 같은 연속 구간으로 나눠 원래 순서대로 처리함 - 스파스 구간의 읽기는 앞읽기를 꺼서 요청한 범위보다 더 읽지 않게 함 - 버퍼드 읽기로 읽은 양을 통계에 더하고 예열 완료 줄 끝에 남김 - 고정은 스파스 파일을 건너뜀 - 스파스 판정을 한 곳으로 모아 다시 만지기와 함께 씀 - `docs/DEVELOPMENT`, `docs/SOLAR`, `docs/AUTO_MODE`, `docs/CONFIGURATION` 의 영문·한국어 문서에 반영함 Issues #193
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
csharp/src/AsterCache.Prefetch/ZoneStreamer.cs).StreamStats.BufferedBytes)에 더하고, 예열 완료 줄 끝에, K MiB of sparse files by buffered read로 남깁니다. 0 이면 붙지 않습니다.csharp/src/AsterCache.Windows/FilePin.cs).FileGuards.IsSparse한 곳으로 모아 다시 만지기와 함께 씁니다.docs/DEVELOPMENT,docs/SOLAR,docs/AUTO_MODE,docs/CONFIGURATION의 영문·한국어 문서에 반영했습니다.알아 둘 점
Test plan
dotnet build csharp -c Release -m:1경고 0, 오류 0dotnet test csharp/tests/AsterCache.Tests -c Release --no-build --filter "Category!=Live"4,487건 통과dotnet format csharp --verify-no-changes종료 코드 0git diff --check종료 코드 0build-test통과: https://github.com/DO0OG/AsterCache/actions/runs/43546980688Closes #193