Files
Bubberstation/code/_experiments.dm
Mothblocks 7d065395a6 Experiment flag for not caching ref on 515 (#73903)
Closes #73902

> Since strings are ref counted, and a `\ref` creates a string, then in
cases where a `\ref` is only intended to go to an html window showed to
a player or admin, storing it would extend how long the string for the
`\ref` exists in the string tree, which is likely bloating the string
tree and making it have to force a rebalance more often.
> 
> 515's next version has a pretty decent speedup on `\ref`/`ref()`.

Turned into an experiment flag for a few reasons:
1. I like the idea of when testing 515, only testing 515, and not our
changes that benefit from 515
2. Lets me profile the differences a lot easier
3. Makes it clearer what needs to be removed, since I have locked
`cached_ref` behind *not* having the flag.

Also adds a compile error if these flags live past 515.
2023-03-14 18:38:37 -06:00

1.1 KiB