-
If we want to be completely clear in the [object copy lesson](https://javascript.info/object-copy), we can include a snippet that mentions string interning, where since strings are immutable, only one…
-
This would allow `Key`s to be garbage collected -- currently they cannot be -- and would allow for deleting [a ton of explanation of that fact](https://github.com/pantsbuild/pants/blob/d847381367847b3…
-
## The Problem
Sometimes in a boxed fallback we need to branch on whether an OperatorHandle is a specific operator. In https://github.com/pytorch/pytorch/pull/85374, functorch's grad transform need…
-
Some applications have a need to canonicalize strings to avoid consuming a lot of memory due to duplicated strings. The way this is usually done is to have map that strongly holds on to the canonicali…
-
Currently we just do nothing whenever `java.lang.String::intern` is called which is not semantically correct.
-
I wanted to share something I noticed last night while I was creating a testcase for one of my detectors.
I have a detector that is making frequent use of the X-Class hierarchy provided in findbugs 2…
-
First I want to say that this is a pretty awesome project. It provides interning for strings only but that's exactly what I needed. Other interning crates are usually more generic, but this always com…
-
```
#
# to run with small heap eg -X heapsize=16384
#
try:
import utime as time
except:
import time
import gc
cnt = 1
last = 0
while cnt < 0x110000:
time.sleep(.005)
…
pmp-p updated
18 hours ago
-
I suggest that we use interned Rust strings for all SQL string types. Based on my experience with DDlog, this is the single biggest memory + speed optimization we can implement. In theory, interned st…
-
Object interning would mean that for each object (map) with the same keys, the structure would be remembered. This would mean that for each occurrence, only the values need to be saved, while the keys…