Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cleanup] Reduce build size + clean up loose ends #3655

Merged
merged 33 commits into from
May 28, 2021

Commits on May 21, 2021

  1. Configuration menu
    Copy the full SHA
    100d588 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2021

  1. Configuration menu
    Copy the full SHA
    8d006a8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d320092 View commit details
    Browse the repository at this point in the history
  3. [Cleanup] Reduce build size handle internal commands macros

    By stripping of an extra parameter, the build size is reduced quite a lot.
    TD-er committed May 22, 2021
    Configuration menu
    Copy the full SHA
    535e81c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0047e49 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8b29429 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ac5d0b9 View commit details
    Browse the repository at this point in the history
  7. [Cleanup] Remove code duplication to reduce build size

    Wrapping functions to convert `LabelType::Enum` into String into separate function to reduce build size
    TD-er committed May 22, 2021
    Configuration menu
    Copy the full SHA
    d21721d View commit details
    Browse the repository at this point in the history
  8. [Cleanup] Stream JSON from PROGMEM LabelType::Enum array to reduce size

    Remove some code duplication by streaming JSON from PROGMEM arrays of `LabelType::Enum`.
    This makes the code more readable and also (slightly) reduces build size. (at least memory usage when serving JSON)
    TD-er committed May 22, 2021
    Configuration menu
    Copy the full SHA
    113ec46 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5ee2e33 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2021

  1. [Cleanup] Reduce build size by keeping flash strings as flash string

    Each call to a function with a flash string, expecting `String` argument is adding a `String()` wrapper increasing build size.
    TD-er committed May 24, 2021
    Configuration menu
    Copy the full SHA
    92768a3 View commit details
    Browse the repository at this point in the history
  2. [Cleanup] Optimise streaming JSON

    Less memory allocations and streaming flash strings as such without converting to `String`
    TD-er committed May 24, 2021
    Configuration menu
    Copy the full SHA
    a5fab90 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3965abc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dcaf9f3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9c363dc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    54bf060 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2021

  1. Configuration menu
    Copy the full SHA
    99f72cc View commit details
    Browse the repository at this point in the history
  2. [Cleanup] Reduce build size of parseStandardConversions function

    Macros including function calls with lots of variables tend to add quite a lot to the build size.
    TD-er committed May 25, 2021
    Configuration menu
    Copy the full SHA
    62424b6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    be3e503 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ba3e473 View commit details
    Browse the repository at this point in the history
  5. [Cleanup] Change return type of some commands to FlashString

    To reduce build size as those do not have to be converted into a String type.
    TD-er committed May 25, 2021
    Configuration menu
    Copy the full SHA
    3074df6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b56a919 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8dfc246 View commit details
    Browse the repository at this point in the history
  8. [Cleanup] Domoticz MQTT, generate own JSON, not using ArduinoJSON lib

    Saves quite a bit from the binary size.
    TD-er committed May 25, 2021
    Configuration menu
    Copy the full SHA
    1f40cd1 View commit details
    Browse the repository at this point in the history
  9. [Cleanup] Serialize JSON not using ArduinoJSON to reduce build size

    Should be tested, as the numbers now no longer are wrapped in quotes.
    TD-er committed May 25, 2021
    Configuration menu
    Copy the full SHA
    cd35a3e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e3f65c1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3d8a505 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    79a3271 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    e739486 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2021

  1. Configuration menu
    Copy the full SHA
    1c7cd15 View commit details
    Browse the repository at this point in the history
  2. [Cleanup] Remove addLog macro and use separate functions per type

    This gets rid of another rather big chunk of (generated) code which does add up to the binary size.
    TD-er committed May 26, 2021
    Configuration menu
    Copy the full SHA
    2dcdcc7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0140419 View commit details
    Browse the repository at this point in the history
  4. [DeviceModel] Change to enum class to allow compiler help check usage

    ... And hopefully this may help in making Linux and Windows builds create more equal sized binaries.
    TD-er committed May 26, 2021
    Configuration menu
    Copy the full SHA
    bfbabf7 View commit details
    Browse the repository at this point in the history