mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 09:46:32 +01:00
Various speed optimizations in various places, following further profiling.
This commit is contained in:
parent
83fa9397d5
commit
4c83d3e7a1
7 changed files with 75 additions and 59 deletions
|
|
@ -142,7 +142,8 @@ def get_and_merge_cmdsets(caller):
|
|||
# report cmdset errors to user (these should already have been logged)
|
||||
yield [caller.msg(cmdset.message) for cmdset in cmdsets if cmdset.key == "_CMDSET_ERROR"]
|
||||
# sort cmdsets after reverse priority (highest prio are merged in last)
|
||||
cmdsets = yield sorted(cmdsets, key=lambda x: x.priority)
|
||||
yield cmdsets.sort(key=lambda x: x.priority)
|
||||
#cmdsets = yield sorted(cmdsets, key=lambda x: x.priority)
|
||||
|
||||
if cmdsets:
|
||||
# Merge all command sets into one, beginning with the lowest-prio one
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue