Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow more inserts before reIndexTopology
Summary: Currently if you are inserting into JIT IR at the same point in the middle of the graph, it only allows for 40 inserts before it has to reindex. Reindexing is N**2 behavior, which can lead to slow load times. This changes it so that it keeps track of how many insertions happen at single point (like when a function is being inlined) to predict how many future insertions will happen there. It then adjusts how it assigns topology to make sure there is enough room for those predicted insertions. In practice this will allow around 2M inserts at a single point before it reindexes. Test Plan: test_jit.py ghstack-source-id: 80b872aa1bf2410ba6418d38aa66ac9906a16496 Pull Request resolved: #102312
- Loading branch information