config.lua: cache all defaults on config table after first load #334
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/qpkg#334
Loading…
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?
After PR #333,
config.luauses__indexmetamethod for deferred I/O.osandarchare cached onconfigviarawsetafter first access, but default values (fromconfig_values) are not cached onconfig— every access hits__index→load_config_file()(no-op) →config_values[k].The overhead is negligible but inconsistent with the
os/archcaching pattern. Recommend updating__indextorawsetcache for all fields after first access:Ref: PR #333