Open samimia-swks opened 2 months ago
No this is not expected.
Could you try reproding the results with the xgboost reference example from the docs or providing us with another reproducible example?
This is probably not unexpected and I was planning on making a final decision around this. Currently the pyodide target simply installs all packages at once, while the pyodide-worker target installs dependencies one-by-one so the user can be informed of the progress. The latter is seemingly considerably slower. This is already addressed in https://github.com/holoviz/panel/pull/6859 by foregoing the progress updates (among other changes).
I have a basic dashboard which I tried exporting (panel: 1.4.4, python 3.12.1) to both 'pyodide-worker' and 'pyodide' targets, and serving them with local web server (Five Server vscode extention). The docs suggest the pyodide-worker method should be more performant, but at least when it comes to the initial load, it's a lot slower on both MS Edge (Win 11) and Chrome (Ubuntu). Is this expected?
Browser console log (Edge) for pyodide-worker below. First line is when I hit the reload button. "### DEBUG ###" lines are at the top of my python script (after the imports). It takes about 30 seconds.
panel convert dashboard.py --to pyodide-worker --out pyodide-worker
Here are the logs for 'pyodide'. It takes only 21 seconds.
panel convert dashboard.py --to pyodide