mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
![Masayuki Nakano](/assets/img/avatar_default.png)
`nsRange` instances are allocated a lot in the heap especially by editor and spellchecker. The allocation cost is too bad for benchmarks. Therefore, we should reuse released instances as far as possible. For managing it in static factory methods of `nsRange`, we need to hide `nsRange` constructor. Differential Revision: https://phabricator.services.mozilla.com/D61237 --HG-- extra : moz-landing-system : lando