holoviz / holoviz/param

Speed up derived applications like Panel by speeding up Path Parameter

Open
#889 0 comments 0 reactions 0 assignees View on GitHub
type-feature
Dominant language
Python
Stars
521
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
35

Description

Panel=`main`, param=2.0.1, python=3.10,os=linux

In https://github.com/holoviz/panel/issues/5852 I'm reporting that for a simple app Panel is spending 2.75% of its load time resolving file paths.

Upon investigation I can see its because the paths to css files etc is hold by a `Path` parameter. And that implementation resolves a string path to a pathlib Path every time its asked for its value.

![image](https://github.com/holoviz/param/assets/42288570/58061459-c5be-4bd3-8461-71e47eeb6062)

**Please add some kind of caching to only resolve once**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.