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

S-Expression: Minimize lag when parsing level names #3103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Vankata453
Copy link
Member

sexp::Parser now supports specifying a custom depth property for omitting (not parsing) structures deeper than depth in the tree, starting from 0. This optimizes parsing level names from level files a ton, since level files tend to be very big and used to take a while to parse collectively.

`sexp::Parser` now supports specifying a custom `depth` property for omitting (not parsing) structures deeper than `depth` in the tree, starting from 0. This optimizes parsing level names from level files a ton, since level files tend to be very big and used to take a while to parse collectively.
@swagtoy
Copy link

swagtoy commented Nov 17, 2024

Unrelated, but i love you Vankata, thanks for delivering on my complaints! :-)

I recommend thorough testing on this of course, even in this codebase. Its good to ensure this can't be broken in any means.

Copy link
Member

@Frostwithasideofsalt Frostwithasideofsalt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it works maybe? idk it doesnt seem to reduce lag tooo much. kinda twerks, merhaps?

@Vankata453
Copy link
Member Author

i think it works maybe? idk it doesnt seem to reduce lag tooo much. kinda twerks, merhaps?

Try loading the levels of "The Crystal Catacombs" in the editor.

@tobbi
Copy link
Member

tobbi commented Nov 17, 2024

I tested this somewhat in the editor and stuff...Seems to work.

@swagtoy
Copy link

swagtoy commented Nov 17, 2024

i think it works maybe? idk it doesnt seem to reduce lag tooo much. kinda twerks, merhaps?

What I mean to say is, I encourage unit testing on this, maybe with only "broken" levels, to ensure segfaults or other nonsense won't happen

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.

4 participants