Skip to content

Movegoods fix - #1655

Open
ab9rf wants to merge 4 commits into
DFHack:masterfrom
ab9rf:movegoods-fix
Open

ab9rf wants to merge 4 commits into
DFHack:masterfrom
ab9rf:movegoods-fix

Conversation

@ab9rf

@ab9rf ab9rf commented Nov 29, 2026

Copy link
Copy Markdown
Member

rewrite the UI and backend processing for movegoods to avoid repeatedly retraversing the item list while (un)marking items for trade

also use a coroutine to ensure the frame pump continues to run when (un)marking a large number of items

additional optimizations added to try to reduce the startup time especially in large forts

fixes DFHack/dfhack#6050

rewrite the UI and backend processing for `movegoods` to avoid repeatedly retraversing the item list while (un)marking items for trade

also use a coroutine to ensure the frame pump continues to run when (un)marking a large number of items

fixes DFHack/dfhack#6050
item scan in the test fort i am using was taking ~6s. these changes trim it to about ~2s which is a significant improvement

will look into why dfhack.item.* methods are so slow to invoke (~95-100 microseconds per call) - there might be a core issue here that can be mitigated but that'll be done separately
mark preservation was not working correctly in conjunction with item grouping, caused a CI test failure
test got desynced from implementation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dfhack trade interface is extremely slow when doing bulk trade marking or unmarking

1 participant