{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/4172","repository_url":"https://api.github.com/repos/esp8266/Arduino","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/4172/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/4172/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/4172/events","html_url":"https://github.com/esp8266/Arduino/issues/4172","id":288737187,"number":4172,"title":"sketch using 2.4.0 is more than 30 kB larger than 2.3.0","user":{"login":"pidloop","id":12057700,"avatar_url":"https://avatars2.githubusercontent.com/u/12057700?v=4","gravatar_id":"","url":"https://api.github.com/users/pidloop","html_url":"https://github.com/pidloop","followers_url":"https://api.github.com/users/pidloop/followers","following_url":"https://api.github.com/users/pidloop/following{/other_user}","gists_url":"https://api.github.com/users/pidloop/gists{/gist_id}","starred_url":"https://api.github.com/users/pidloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pidloop/subscriptions","organizations_url":"https://api.github.com/users/pidloop/orgs","repos_url":"https://api.github.com/users/pidloop/repos","events_url":"https://api.github.com/users/pidloop/events{/privacy}","received_events_url":"https://api.github.com/users/pidloop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2018-01-15T22:55:44Z","updated_at":"2018-03-09T12:56:42Z","closed_at":null,"author_association":"NONE","body":"While working on issue #(4166) I noticed the compiled size of the test program I was using grew by about 34 kB and RAM usage grew about 1.4 kB in version 2.4.0 compared with 2.3.0. While this is not a critical issue, the sudden jump is a concern. Note there was only a very small increase from 2.2.0 to 2.3.0. I wonder if there is a particular reason for this latest increase and whether some way might be found to reduce it.\r\n\r\nMy application ( [here](http://www.clearskyinstitute.com/ham/HamClock) ) already uses about 850 kB and I am hoping to add more features so the loss of 34 kB may eventually become significant.\r\n\r\nHere are the sizes reported after setting the ESP Huzzah Board version, using the toy sketch below:\r\n\r\n```\r\nVersion  Program  RAM\r\n2.2.0    223660  31543\r\n2.3.0    226353  31904\r\n2.4.0    260583  33384\r\n\r\n```\r\n\r\n\r\n`\r\n#include <stdlib.h>\r\n#include <string.h>\r\n#include <math.h>\r\n\r\n#include <SPI.h>\r\n#include <ESP8266WiFi.h>\r\n#include <WiFiServer.h>\r\n#include <WiFiClient.h>\r\n#include <WiFiUdp.h>\r\n\r\nchar ssid[] = \"clearskyinstitute\";\r\nchar pw[] = \"from651plan\";\r\n\r\nvoid setup()\r\n{\r\n    Serial.begin(115200);\r\n\r\n    WiFi.enableSTA(true);\r\n\r\n    WiFi.setAutoConnect (true);\r\n    WiFi.setAutoReconnect (true);\r\n\r\n    WiFi.begin (ssid, pw);\r\n\r\n    Serial.println(\"start\");\r\n}\r\n\r\nvoid loop()\r\n{\r\n    prWiFiStatus(WiFi.status());\r\n\r\n    if (WiFi.isConnected())\r\n        Serial.println (WiFi.localIP());\r\n\r\n    delay(2000);\r\n}\r\n\r\nvoid prWiFiStatus (int s)\r\n{\r\n    #define     VALCASE(x)      case x: Serial.println(#x); break;\r\n\r\n    switch (s) {\r\n    VALCASE(WL_NO_SHIELD);\r\n    VALCASE(WL_IDLE_STATUS);\r\n    VALCASE(WL_NO_SSID_AVAIL);\r\n    VALCASE(WL_SCAN_COMPLETED);\r\n    VALCASE(WL_CONNECTED);\r\n    VALCASE(WL_CONNECT_FAILED);\r\n    VALCASE(WL_CONNECTION_LOST);\r\n    VALCASE(WL_DISCONNECTED);\r\n    default: Serial.println(s); break;\r\n    }\r\n}\r\n\r\n`"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/371805236","html_url":"https://github.com/esp8266/Arduino/issues/4172#issuecomment-371805236","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/4172","id":371805236,"user":{"login":"Hiddenvision","id":35905061,"avatar_url":"https://avatars1.githubusercontent.com/u/35905061?v=4","gravatar_id":"","url":"https://api.github.com/users/Hiddenvision","html_url":"https://github.com/Hiddenvision","followers_url":"https://api.github.com/users/Hiddenvision/followers","following_url":"https://api.github.com/users/Hiddenvision/following{/other_user}","gists_url":"https://api.github.com/users/Hiddenvision/gists{/gist_id}","starred_url":"https://api.github.com/users/Hiddenvision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hiddenvision/subscriptions","organizations_url":"https://api.github.com/users/Hiddenvision/orgs","repos_url":"https://api.github.com/users/Hiddenvision/repos","events_url":"https://api.github.com/users/Hiddenvision/events{/privacy}","received_events_url":"https://api.github.com/users/Hiddenvision/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T12:56:42Z","updated_at":"2018-03-09T12:56:42Z","author_association":"NONE","body":"@romansavrulin, Cheers been using that for a while and it removes a little more.."}}
{"actor":{"display_login":"Hiddenvision"}}