Skip to content

Commit

Permalink
Use protobuf-lite it is 83% smaller in code size and don't need all o…
Browse files Browse the repository at this point in the history
…f the protobuf functionality.
  • Loading branch information
TricksterGuy committed Jun 29, 2020
1 parent 426a5bc commit c6865d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ set(SRC_ppe

set(wxWidgets_USE_LIBS core base)
find_package(wxWidgets REQUIRED)
pkg_search_module(PROTOBUF REQUIRED protobuf)
pkg_search_module(PROTOBUF REQUIRED protobuf-lite)
if(ENABLE_XLSX)
# libxlsxwriter doesn't have a pkg-config definition or FindCMake module.
set(XLSX_INCLUDEDIR "")
Expand Down
4 changes: 4 additions & 0 deletions gen/Picross.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
syntax = "proto3";

// Depend on protobuf-lite as it is much smaller in space.
// Don't need descriptors or reflection.
option optimize_for = LITE_RUNTIME;

// Solution info for a row column.
// This message represents the numbers along the top/left of the picross.
// Additionally fields for special picross that involve multiple bits per cell.
Expand Down

0 comments on commit c6865d0

Please sign in to comment.