Skip to content
Snippets Groups Projects
Verified Commit f92c5b96 authored by X.organic's avatar X.organic
Browse files

Fix a performance regression in query functions

This commit brings back the old code for W_CheckNumForNamePwad, using memcmp
instead of strncmp, which is readily inlined by modern C compilers and has
more acceptable performance in P_AddWadFile. Also removes some redundant
strlens, saving the result of one call instead.

This commit increases this branch's distance from SRB2 2.2, per Ashnal
and SteelT's note that I shouldn't worry too much about it, especially
when there's performance on the line.
parent 3305303e
No related branches found
No related tags found
1 merge request!289Backport SRB2 2.2's PK3 loader code fixes
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment