Skip to content

Latest commit

History

History
13 lines (9 loc) 路 776 Bytes

performance.md

File metadata and controls

13 lines (9 loc) 路 776 Bytes

Tips and Tricks + Best Practices for creating performant panel apps

Slow Panel apps can have different causes

  • The Bokeh Layout Engine can slow your application down. See Issue 9515.

My tips+tricks to mitigate this is.

  • Use the Template system whenever you can.
  • Don鈥檛 do lots of nested Columns and Rows in Panel. Use pn.Param if you have a model with a lot of parameters.
  • Don鈥檛 configure layout settings like width, height, margin etc. of Panel Columns and Rows via Css. Use Column and Row attributes in Panel for that.
  • Use FireFox instead of Chrome. It's much faster.
  • Swap out all content of a layout at once (col[:]=[objects]) instead of multiple times (for obj in objects: col.append(obj))