stefansjs / flatbuffers-intellij-plugin

A flatbuffers schema editing plugin for the IntelliJ platform
Other
4 stars 1 forks source link

Performance tuning of the parser #3

Open stefansjs opened 4 years ago

stefansjs commented 4 years ago

The 0.1.1 version of the plugin is rather slow with parsing and syntax highlighting. I'll want to do some performance tuning using features of the grammarkit bnf grammar. Additionally, a lot of syntax highlighting fails when some statements are incomplete.

Tuning Subtasks

References

GrammarKit example

https://github.com/JetBrains/Grammar-Kit/blob/master/grammars/Grammar.bnf?source=c#L53

stefansjs commented 4 years ago

More reading: https://www.jetbrains.org/intellij/sdk/docs/basics/indexing_and_psi_stubs/stub_indexes.html

stefansjs commented 4 years ago

Another document to read https://www.jetbrains.org/intellij/sdk/docs/reference_guide/performance/performance.html