Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[timestream] ensure item scanning is not starved #1258

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

myk002
Copy link
Member

@myk002 myk002 commented Aug 4, 2024

discord discussion: https://discord.com/channels/793331351645323264/807444467140788254/1269323622300782715

DF scans the item vector with a stride of 50 and a start index based on the current tick. This PR ensures that every relevant tick is represented at least once per 1000 ticks so that no item is starved.

This change increases the CPU utilization of timestream from 9% to 10.5%, so a good next step would be to port this tool to c++

@myk002 myk002 requested a review from ab9rf August 4, 2024 22:18
@myk002 myk002 merged commit 89ccc29 into DFHack:master Aug 5, 2024
10 checks passed
@myk002 myk002 deleted the myk_timestream branch August 5, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant