NetLogo / NetLogo

turtles, patches, and links for kids, teachers, and scientists
http://ccl.northwestern.edu/netlogo/
1.01k stars 243 forks source link

Indenter makes model indentation/navigation slow #1287

Closed mrerrormessage closed 7 years ago

mrerrormessage commented 7 years ago

This is especially true in large models. The indenter does a lot of backtracking to try to match components and a decent amount of string creation, all of which ends up being computationally expensive. This can be minimized to ensure a quicker experience for our users.

Idloj commented 7 years ago

duplicate of #1193

qiemem commented 7 years ago

@Idloj is right.

qiemem commented 7 years ago

To clarify, the reason this wasn't showing up on newlines and close brackets before was because they used a different path than tab-indenting. This resulted in inconsistencies in how indentation was applied, and thus I made them all use the same path in #1231. Thus, the slowness is all due to the same code now.