From f020eac6a85fb956dbd61ff6a138ad94ac87a688 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Wed, 12 Feb 2020 18:09:27 -0600 Subject: [PATCH] py/obj.h: Remove TODO idea comment about truncated mp_map_t. It was suggested to move this to a GitHub issue rather than keep it in the code, which isn't really sustainable for all ideas. --- py/obj.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/py/obj.h b/py/obj.h index fece5e73db..88134b42fd 100644 --- a/py/obj.h +++ b/py/obj.h @@ -383,11 +383,6 @@ typedef struct _mp_rom_map_elem_t { mp_rom_obj_t value; } mp_rom_map_elem_t; -// TODO maybe have a truncated mp_map_t for fixed tables, since alloc=used -// put alloc last in the structure, so the truncated version does not need it -// this would save 1 ROM word for all ROM objects that have a locals_dict -// would also need a trucated dict structure - typedef struct _mp_map_t { size_t all_keys_are_qstrs : 1; size_t is_fixed : 1; // a fixed array that can't be modified; must also be ordered