caching the mapping between Objective-C instances and JSValues
I have a JSC iOS app that uses a shocking amount of memory and it’s all inside JSC.
Nope
11

I meant that we had custom Objective-C classes like `Guest` and that we cached the results of our code that let us build `JSValue` instances from our `Guest` instances. As we were multithreading, we had one of these caches per worker thread.

I’d recommend digging into where the memory hogging is happening. The debugging tools are pretty good at showing what JSCore internals are using up memory. Also, heavy GC usage was an issue for us, probably because I got carried away with using a lot of filter and reduce in the JS code.

Show your support

Clapping shows how much you appreciated Max Heiber’s story.