Meseportals causes server startup take longer than necessary #2960

Closed
opened 2022-11-04 13:21:26 +00:00 by AliasAlreadyTaken · 3 comments

That's because meseportals adds EVERY player into a meseportals.players when they join first. The file is nearly 1 MB long, has around 40k entries and is iterated over two times during server start. This causes the mod take up to six minutes on the live server during start.

We need to cull non-essential entries from that file.

That's because meseportals adds EVERY player into a meseportals.players when they join first. The file is nearly 1 MB long, has around 40k entries and is iterated over two times during server start. This causes the mod take up to six minutes on the live server during start. We need to cull non-essential entries from that file.
Author
Owner

Fixed in 49853f81e2

Fixed in https://gitea.your-land.de/your-land/minetest-meseportals/commit/49853f81e25f584f55fb08728636ce6a98b1afea
AliasAlreadyTaken added this to the 1.1.116 milestone 2022-11-04 13:24:30 +00:00
Member

@AliasAlreadyTaken could you verify this is live and close at your convenience?

@AliasAlreadyTaken could you verify this is live and close at your convenience?
Author
Owner

This shaved 4 minutes off the server restart and made it to under 90 seconds.

This shaved 4 minutes off the server restart and made it to under 90 seconds.
AliasAlreadyTaken added the
5. result/fixed
label 2022-11-23 10:52:18 +00:00
AliasAlreadyTaken removed the
4. step/ready to QA test
label 2023-01-12 21:26:05 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#2960
No description provided.