ZeroX-DG / SnippetStore

:tada: A snippet management app for developers :rocket:

Home Page:https://zerox-dg.github.io/SnippetStoreWeb/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Performance issue if there're too many snippets

ZeroX-DG opened this issue · comments

There're a performance issues in original layout when there're too many snippets in list. With the list and details layout, everything look good but also there're some minor performance issue when resizing the left menu bar.

hello @ZeroX-DG I really like the normal layout. Any thoughts on how to improve performance?

Well, it's because the original layout has many CodeMirror instances therefore, everytime we resize the left menu bar it re-calculate the size and redraws the instance. Similar to this issue: codemirror/codemirror5#5398

Can't you use Prism by Lea Verou?
It would be perfect to display total snippet list in any mode and use CodeMirror only for editing/adding snippet.

Prism is simple, smaller in size, has plugin support, supports a-hell-lot-of languages.

Only issue to arise is, it is available in fewer color-schemes (AFAIK).