Skip to content

add: Rust UUID & Unbundle sun #7069

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

Open
wants to merge 22 commits into
base: master220
Choose a base branch
from

Conversation

Antoonij
Copy link
Contributor

@Antoonij Antoonij commented Jul 3, 2025

Описание

Солнце заменено генератором ууид, ибо не оправдало ожиданий на проде.

О генераторе ууид:
ByondValue, судя по дмрефу https://ref.harry.live/appendix/Byondapi, а именно эта часть
image
image
передаются как Weak ссылки (пока вручную не произойдет инкреф), т.е повторяют цель прошлого генератора УИД - иметь возможность ссылаться на объект, не увеличивая кол-во сильных ссылок. В дме бы такая реализация вызывала создание сильных ссылок/большей ассоциативной таблицы, но в случае call_ext - такого нет.

Короче говоря - это замена хака с рефами и манипуляциями со строками + долгий локейт по рефу на большее потребление озу, но в 5 раз быстрее все это дело будет работать + есть защита от данглинг рефов

Причина создания ПР / Почему это хорошо для игры

без раста:
without_rust_r1
without_rust_r2
no_rust

С растом:
with_rust_r1
with_rust_r2
with_rust

гетуид, локейтбайюд работают быстрее Byond и требуют меньше цпу

@github-actions github-actions bot added the RUST Данный PR изменил файлы билда на языке rust. label Jul 3, 2025
@Antoonij
Copy link
Contributor Author

Antoonij commented Jul 3, 2025

!build_rust

1 similar comment
@Antoonij
Copy link
Contributor Author

Antoonij commented Jul 4, 2025

!build_rust

@Antoonij Antoonij changed the title add: Rust UUID & improve rust code add: Rust UUID & improve rust code & Unbundle sun Jul 5, 2025
@Antoonij
Copy link
Contributor Author

Antoonij commented Jul 5, 2025

!build_rust

@Antoonij Antoonij marked this pull request as ready for review July 5, 2025 09:19
@Antoonij Antoonij changed the title add: Rust UUID & improve rust code & Unbundle sun add: Rust UUID & Unbundle sun Jul 5, 2025
@Antoonij Antoonij marked this pull request as draft July 5, 2025 12:37
@Antoonij Antoonij marked this pull request as ready for review July 5, 2025 15:11
@Antoonij Antoonij marked this pull request as draft July 5, 2025 15:14
@Antoonij Antoonij marked this pull request as ready for review July 5, 2025 15:16
@Antoonij
Copy link
Contributor Author

Antoonij commented Jul 5, 2025

!build_rust

@Antoonij Antoonij marked this pull request as draft July 5, 2025 19:01
@Antoonij Antoonij marked this pull request as ready for review July 7, 2025 06:21
@dageavtobusnick dageavtobusnick added the testmerge This PR is being tested right now on live test servers. label Jul 7, 2025
@Antoonij
Copy link
Contributor Author

Antoonij commented Jul 9, 2025

!build_rust

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RUST Данный PR изменил файлы билда на языке rust. testmerge This PR is being tested right now on live test servers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants