ortools and protobuf-lite ? #2443
-
I'm using OR-Tools 7.8 and protobuf 3.12.2. I'm trying to make OR-Tools use protobuf-lite to get rid of the static initializers that it creates in the ortools library. This is a performance issue for me. If my project is not using the parts of OR-Tools that depend on non-lite pieces of protobuf, I'm wondering how hard it would be to disable them. I'm looking at PORTABLE_PLATFORM in the OR-Tools code base. It seems to disable some external dependencies. But I haven't found any documentation for it yet. How is PORTABLE_PLATFORM normally used? Does anyone have any guidance to offer before I start down this road? Chris |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Basically, if you define PORTABLE_PLATFORM, it disable non proto-lite usage in port/proto_utils.h I am not sure you want to define PORTABLE_PLATFORM everywhere. |
Beta Was this translation helpful? Give feedback.
Basically, if you define PORTABLE_PLATFORM, it disable non proto-lite usage in port/proto_utils.h
I am not sure you want to define PORTABLE_PLATFORM everywhere.