Skip to content

Commit

Permalink
[opy] Omit docstrings from the bytecode.
Browse files Browse the repository at this point in the history
This saves more than 160 KB.
  • Loading branch information
Andy Chu committed Oct 7, 2018
1 parent 3c4fb72 commit 6c63593
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions opy/build.sh
Expand Up @@ -79,8 +79,7 @@ compile-manifest() {
log " $full_src_path"

# Save space by omitting docstring.
# TODO: Turn this back on at the 0.6.pre6 release to show the difference.
$py $THIS_DIR/../bin/opyc compile -emit-docstring=1 $full_src_path $dest
$py $THIS_DIR/../bin/opyc compile -emit-docstring=0 $full_src_path $dest

local rel_py_path=${rel_dest_path%.pyc}.py # .pyc -> py

Expand Down

0 comments on commit 6c63593

Please sign in to comment.