Damien George
9b196cddab
Remove mp_obj_type_t.methods entry and use .locals_dict instead.
...
Originally, .methods was used for methods in a ROM class, and
locals_dict for methods in a user-created class. That distinction is
unnecessary, and we can use locals_dict for ROM classes now that we have
ROMable maps.
This removes an entry in the bloated mp_obj_type_t struct, saving a word
for each ROM object and each RAM object. ROM objects that have a
methods table (now a locals_dict) need an extra word in total (removed
the methods pointer (1 word), no longer need the sentinel (2 words), but
now need an mp_obj_dict_t wrapper (4 words)). But RAM objects save a
word because they never used the methods entry.
Overall the ROM usage is down by a few hundred bytes, and RAM usage is
down 1 word per user-defined type/class.
There is less code (no need to check 2 tables), and now consistent with
the way ROM modules have their tables initialised.
Efficiency is very close to equivaluent.
2014-03-26 21:47:19 +00:00
..
2014-03-17 02:43:40 -07:00
2014-01-06 13:51:53 -08:00
2014-02-12 18:31:30 +02:00
2014-01-06 13:51:53 -08:00
2014-02-01 23:04:09 +00:00
2014-03-23 21:41:29 +02:00
2014-03-17 02:43:40 -07:00
2014-02-14 20:38:35 +02:00
2014-03-26 21:47:19 +00:00
2014-03-25 14:18:18 +00:00
2014-03-17 02:43:40 -07:00
2014-03-25 14:18:18 +00:00
2014-03-25 14:29:40 +00:00
2014-03-25 14:18:18 +00:00
2014-03-22 20:29:56 +00:00
2014-01-18 23:24:36 +00:00
2014-02-05 00:51:47 +00:00
2014-03-17 02:43:40 -07:00
2014-03-17 02:43:40 -07:00
2014-03-17 02:43:40 -07:00
2014-03-17 02:43:40 -07:00
2014-03-26 19:27:58 +00:00
2014-03-17 02:43:40 -07:00
2014-03-17 02:43:40 -07:00
2014-03-10 13:27:02 +00:00
2014-03-17 02:43:40 -07:00
2014-02-26 22:55:59 +00:00
2014-02-10 02:04:26 +02:00
2014-03-22 20:29:56 +00:00
2014-03-22 20:29:56 +00:00
2014-03-17 02:43:40 -07:00
2014-02-05 23:57:48 +00:00
2014-03-17 02:43:40 -07:00
2014-03-17 02:43:40 -07:00
2014-01-08 15:28:26 +00:00
2014-03-25 15:27:15 +00:00
2014-03-17 02:43:40 -07:00
2014-03-17 02:43:40 -07:00
2014-03-26 21:47:19 +00:00
2014-03-15 14:33:09 +00:00
2014-01-24 08:46:48 -08:00
2014-03-14 23:41:28 -07:00
2014-03-25 14:18:18 +00:00
2014-03-25 14:18:18 +00:00
2014-03-25 14:18:18 +00:00
2014-03-25 14:18:18 +00:00
2014-03-25 14:18:18 +00:00
2014-03-23 01:59:11 +02:00
2014-03-23 01:59:11 +02:00
2014-03-01 10:05:33 +02:00
2014-03-01 10:05:53 +02:00
2014-03-22 17:37:20 -07:00
2014-01-28 19:52:04 +01:00
2014-03-24 10:47:13 +00:00
2014-03-26 21:47:19 +00:00
2014-03-26 21:47:19 +00:00
2014-01-19 01:40:47 +02:00
2014-03-17 02:43:40 -07:00
2014-03-17 02:43:40 -07:00
2014-03-17 02:43:40 -07:00
2014-03-17 02:43:40 -07:00
2014-03-21 11:45:46 +00:00
2014-03-26 21:47:19 +00:00
2014-03-26 19:27:58 +00:00
2014-03-26 18:56:02 +00:00
2014-03-26 19:27:58 +00:00
2014-03-22 12:17:36 +00:00
2014-03-17 02:43:40 -07:00
2014-03-26 21:47:19 +00:00
2014-03-26 19:33:23 +00:00
2014-03-26 19:27:58 +00:00
2014-03-22 20:54:01 +00:00
2014-03-23 01:59:11 +02:00
2014-03-22 20:54:01 +00:00
2014-02-22 19:25:23 +00:00
2014-03-26 21:47:19 +00:00
2014-03-26 19:27:58 +00:00
2014-03-25 14:18:18 +00:00
2014-03-25 14:18:18 +00:00
2014-03-03 11:42:53 +08:00
2014-03-26 19:27:58 +00:00
2014-03-22 21:31:28 +00:00
2014-03-26 19:27:58 +00:00
2014-03-26 21:47:19 +00:00
2014-03-17 02:43:40 -07:00
2014-03-26 21:47:19 +00:00
2014-03-26 21:47:19 +00:00
2014-03-03 11:42:53 +08:00
2014-03-26 21:47:19 +00:00
2014-03-26 19:27:58 +00:00
2014-03-17 02:43:40 -07:00
2014-02-22 18:12:43 +00:00
2014-02-15 16:10:44 +00:00
2014-02-15 16:10:44 +00:00
2014-03-21 20:46:38 +00:00
2014-03-21 11:45:46 +00:00
2014-03-01 19:50:50 +00:00
2014-03-01 19:50:50 +00:00
2014-03-25 14:18:18 +00:00
2014-03-25 15:27:15 +00:00
2014-01-29 18:56:46 +00:00
2014-03-26 20:15:40 +00:00
2014-01-11 00:12:06 +02:00
2014-01-07 23:06:46 +00:00
2014-02-16 18:36:33 +02:00
2014-03-26 21:47:19 +00:00
2014-03-26 19:27:58 +00:00
2014-03-17 02:43:40 -07:00
2014-02-15 19:33:11 +00:00
2014-03-17 02:43:40 -07:00
2014-03-22 13:52:08 +02:00
2014-03-26 19:27:58 +00:00
2014-01-20 18:42:08 +02:00
2014-02-12 18:31:30 +02:00
2014-03-26 19:27:58 +00:00
2014-03-17 02:43:40 -07:00