Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

要求画面の表示の高速化 #10

Open
3 tasks
automatic9045 opened this issue Oct 24, 2021 · 0 comments
Open
3 tasks

要求画面の表示の高速化 #10

automatic9045 opened this issue Oct 24, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@automatic9045
Copy link
Owner

automatic9045 commented Oct 24, 2021

現状、要求画面を表示するタイミングで設定されているコマンドを構文解析・実行しているため遅い。
各ボタンのコマンドをあらかじめコンパイルして登録することで、要求画面の表示の高速化が期待できる。

修正・追加する必要があるもの

  • コマンドを定義するためのクラスの準備
    • ITicketControlCommandインターフェイス(仮称)を準備し、各コマンドをITicketControlCommandを実装するクラスとして定義する
      • static List<ITicketControlCommand> CompileCommands(string commandText);メソッドをどこかしらで定義する
        • ITicketPluginのメンバーにしてしまうのが多分一番良い
        • 標準的なコマンドのコンパイラーについてはPluginHostなどで提供することも併せて検討。現状ではチケットプラグイン毎にいちいちコマンドの処理系を実装する必要があり面倒
    • または単にList<Action>でも良いかもしれない。読みやすさなども加味して要検討
  • TicketButton
    • 現状はCommandプロパティはstring型で、生のコマンド文字列を保存している
    • Commandプロパティの型をList<ITicketControlCommand>かList<Action>に変更し、定義ファイル読み込み時にCommand = CompileCommands(commandText);するようにする
  • KeyInfo
    • 同上
@automatic9045 automatic9045 added the enhancement New feature or request label Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant