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

ADOPTED: Datum softdels #1920

Merged
merged 27 commits into from
Oct 4, 2024

Conversation

amylizzle
Copy link
Collaborator

Adopted from #1776

Seems to have dropped 2Gb from the memory usage of goon on cog2.

Draft because some mildly weird stuff needs investigating first

@boring-cyborg boring-cyborg bot added Compiler Involves the OpenDream compiler Runtime Involves the OpenDream server/runtime labels Aug 12, 2024
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@amylizzle
Copy link
Collaborator Author

Running goon with only softdels (ie, the whole ifdef opendream del() thing disabled) reduces memory usage by the same amount. Using goon's debug tools for softdels I get this for OD:
image
compared to this for BYOND:
image

public sealed class WeakDreamRef {
private readonly WeakReference<DreamObject> _weakReference;

public WeakDreamRef(DreamObject obj) => _weakReference = new WeakReference<DreamObject>(obj);

Check notice

Code scanning / InspectCode

Convert constructor into primary constructor Note

Convert into primary constructor
@amylizzle amylizzle marked this pull request as ready for review October 4, 2024 12:52
@wixoaGit wixoaGit enabled auto-merge (squash) October 4, 2024 17:05
@wixoaGit wixoaGit merged commit 644ebb1 into OpenDreamProject:master Oct 4, 2024
7 checks passed
@amylizzle amylizzle deleted the datum_softdels_adopted branch October 4, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler Involves the OpenDream compiler Runtime Involves the OpenDream server/runtime size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants