Rapptz 95d8bb2e85 Change internal representation of roles in Member and Emoji.
Introduce a new internal type, SnowflakeList, which has better memory
footprint over a regular list or set of roles. It is suspected that
there will be a 9x reduction of memory for every Emoji instance and a
48 byte saving per Member instance. However, these savings will
probably only be evident on larger bots.

As a consequence of this change, Member.roles is now computed lazily.

Currently I am not sure if I want to do the initial sorting on the
SnowflakeList for Member, as this comes with a O(n log n) cost when
creating a Member for little purpose since SnowflakeList.has is not
overly relied on. If CPU time becomes an issue this might change.
2018-09-24 22:19:42 -04:00
..
2018-01-26 12:46:19 -05:00
2018-06-10 18:16:40 -04:00
2018-09-14 22:55:27 -04:00
2018-08-22 21:06:09 -04:00
2018-08-22 22:01:19 -04:00
2018-01-06 17:23:59 -05:00
2018-09-14 22:55:29 -04:00
2017-01-20 23:19:19 -05:00
2018-02-06 11:19:42 -05:00
2018-08-22 21:43:50 -04:00
2018-09-14 22:55:27 -04:00
2018-09-16 22:46:05 +08:00