[storage][apps/code] Change sizes (#28)

This commit is contained in:
ArtichautCosmique
2021-09-25 19:49:26 +02:00
committed by GitHub
parent f5f11c6478
commit 0b54bf13f4
3 changed files with 3 additions and 3 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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();