pyodide / pyodide/pyodide

Default compilation flags

Open
#1,572 3 comments 0 reactions 0 assignees View on GitHub
good first issue help wanted size & load time optimization
Dominant language
Python
Stars
14.8k
Forks
1k
Avg merge
20h 29m
Merged PRs (30d)
19

Description

To continue a discussion on Gitter started by @pmp-p ,

> did you test benefits of -O2 -g for real, because I rarely saw a speed improvement vs -Os -g0 (which give a serious size reduction and better jit in v8 )

In my tests some time ago `-O3` was faster by 10% on Pyodide benchmarks and made the overall download size by 10% larger or so as compared to `-Os`, if I remember correctly.

However there is more an more evidence that `-Os` would be preferable https://github.com/pyodide/pyodide/issues/1541 so I agree that we should probably switch to it.

Regarding `-g` vs `-g0` I have not tried it, it would make stack traces less readable right? We should investigate how much size it would save in Pyodide.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.