On 7/12/13 8:25 PM, Patrick Walton wrote:
On 7/12/13 4:45 PM, Patrick Walton wrote:
1. Use the JS GC for everything; eat the cost of eagerly creating all
wrappers. As Boris mentioned, maybe this isn't so bad. I would assume
this is what Oilpan is doing in Blink.

After talking to Terrence from the JS team, apparently with a month or
two of hacking on SpiderMonkey we might be able to allocate Rust objects
of 18 64-bit words or fewer into the JS heap directly.

Hmm. 18 64-bit words is enough for a basic element, I'd think, though with the copy/on-write setup we would need to measure carefully. Subclasses might need to heap-allocate some of their members, though, which is a bit of a pain.

-Boris
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to