Wilfred/logstash-conf.el

The indentation taking too long

Closed this issue · 2 comments

Hi, This is a great mode, I am currently using it for my config file, however, every indentation is taking too long to process.
The slow down is probably related to the fact that my conf file is too large, but I felt like this mode should be optimized for running relatively largely files as well right?

At the moment, every time I start a new line and press tab, it will take about 3-4 secs to finish, and I tried to indent a block of texts, it is just taking too long. Is there any way to optimize performance?

Do you have a sample file I can test with? Feel free to replace any values with placeholders.

Hi. sorry for this late reply, I have just drafted a test version in my git gist: https://gist.github.com/chester755/daba9cd5f948e0e9d026841fbd82ffbe
My apology for this bad example, but it's hard to draft a long practical version without effort.

I think as the file is getting longer, it will take longer and longer to indent. In reality, I have a config file that is about several thousand lines long, this soon become a problem to indent.