ethan-leba / tree-edit

🌲 Structural editing in Emacs for any™ language!
GNU General Public License v3.0
393 stars 16 forks source link

Performance issues #19

Open ethan-leba opened 2 years ago

ethan-leba commented 2 years ago

There's a noticable delay once we hit ~10 statements in a block:

    private void foo(String args) {
        break;
        break;
        break;
        break;
        break;
        break;
        break;
        break;
        break;
        break;
    }

The easiest solution would likely be to special case specific node types, like REPEAT[CHOICE...] or other trivial grammar nodes.

A more likely better long-term solution would be to port the performance optimizations in faster-miniKanren to reazon.

ethan-leba commented 2 years ago

Bug discovered in reazon that had large effects on performance: https://github.com/nickdrozd/reazon/pull/15

Hopefully should help alot here!