LL perf (Textures/assets): LLFileSystem reopens the file for every operation #301
Labels
No labels
amd
avatars
bug
builder
cannot-reproduce
crash
epic
feature
from-viewer
gl-removal
known-limitation
monitoring
parity
perf
platform
priority
critical
priority
high
priority
low
priority
medium
provenance
rendering
rt
status
in-progress
status
testing
status
up-next
triage
ui
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sky_line/Slipstream#301
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From the LL-origin inefficiency audit (finding T5). File/line references are from commit
0229f8872c; re-locate them before working.LLFileSystemreopens the file for every operationllfilesystem/llfilesystem.cpp.fileExistsplus alast_write_timestat, and possiblyutime(:57-71, 300-359).getSize()opens an ifstream and seeks to the end (:122-135);seek()andeof()both callgetSize()(:176-179, 247).read/writeopen and close a stream each time (:137-236).getExists()opens an ifstream and seeks to test for non-zero size (:74-87).llmeshrepository.cpp:2046-2080).readper chunk plusgetSizeper SEEK_END (llaudiodecodemgr.cpp:100-160).fstatonce;pread; oneutimensatonly when stale.Verify the cost (profile or timer) before and after changing it.