willox / auxtools

Rust library for low-level interfacing with BYOND's virtual machine. Includes a remote debugger for the BYOND DreamMaker language.
MIT License
27 stars 32 forks source link

Makes set_by_id, get_by_id public #23

Closed Putnam3145 closed 3 years ago

Putnam3145 commented 3 years ago

These two functions are slightly tougher to use than the string-based ones but also:

image

literally having to get the string ID every time makes it 2.5x as slow as just using the ID every time. I would like to optimize this.

ZeWaka commented 3 years ago

public functions should have code doc, no?

willox commented 3 years ago

public functions should have code doc, no?

We're going to have a better solution than this anyway. Auxtools exists to abstract away things like StringIDs. You can see the changes on the string_interning branch for an idea of how it'll work.