diff --git a/apps/code/app.h b/apps/code/app.h index 494f5c0f8..68692a135 100644 --- a/apps/code/app.h +++ b/apps/code/app.h @@ -75,7 +75,7 @@ public: VariableBoxController * variableBoxController() { return &m_variableBoxController; } - static constexpr int k_pythonHeapSize = 100000; + static constexpr int k_pythonHeapSize = 67000; private: /* Python delegate: diff --git a/apps/code/variable_box_controller.h b/apps/code/variable_box_controller.h index 5e9b44bbb..81504ac0a 100644 --- a/apps/code/variable_box_controller.h +++ b/apps/code/variable_box_controller.h @@ -43,7 +43,7 @@ public: private: constexpr static size_t k_maxNumberOfDisplayedItems = (Ion::Display::Height - Metric::TitleBarHeight - Metric::PopUpTopMargin) / ScriptNodeCell::k_simpleItemHeight + 2; // +2 if the cells are cropped on top and at the bottom - constexpr static size_t k_maxScriptNodesCount = 128; // Chosen without particular reasons (Number of functions in the variables box) + constexpr static size_t k_maxScriptNodesCount = 64; // Chosen without particular reasons (Number of functions in the variables box) constexpr static int k_totalBuiltinNodesCount = 107; constexpr static uint8_t k_scriptOriginsCount = 8; // Number of scripts loaded in the variable box constexpr static uint8_t k_subtitleCellType = NodeCellType; // We don't care as it is not selectable diff --git a/ion/include/ion/storage.h b/ion/include/ion/storage.h index 105135177..14d709004 100644 --- a/ion/include/ion/storage.h +++ b/ion/include/ion/storage.h @@ -17,7 +17,7 @@ class Storage { public: typedef uint16_t record_size_t; - constexpr static size_t k_storageSize = 32768; + constexpr static size_t k_storageSize = 64000; static_assert(UINT16_MAX >= k_storageSize, "record_size_t not big enough"); static Storage * sharedStorage();