Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[core] Tweak conversions to reduce binary size #12511

Merged
merged 1 commit into from
Jul 31, 2018
Merged

Conversation

jfirebaugh
Copy link
Contributor

  • return {}return nullopt
  • error = { "..." }error.message = "..."

@jfirebaugh jfirebaugh requested a review from mollymerp July 30, 2018 22:34
Copy link
Contributor

@mollymerp mollymerp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 📉 – trusting the tests here bc I'm not familiar with how clang handles the difference of value initialization vs nullopt or the changes to modifying the errors but the size reductions look good!

* return {} → return nullopt
* error = { "..." } → error.message = "..."
@jfirebaugh jfirebaugh merged commit 9a1bb1a into master Jul 31, 2018
@jfirebaugh jfirebaugh deleted the slim-conversion branch July 31, 2018 00:17
@kkaefer kkaefer added refactor Core The cross-platform C++ core, aka mbgl labels Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants