On Mon, 18 Dec 2017 03:24:05 +0900 INADA Naoki <songofaca...@gmail.com> wrote:
> On Mon, Dec 18, 2017 at 12:46 AM, Guido van Rossum <gu...@python.org> wrote: > > My gut suggests me not to do this (neither here nor in other similar cases). > > I doubt there's much of a performance benefit anyway. > > OrderedDict uses 2x memory than dict. > So it affects memory usage of applications loading large CSV with DictReader. > > While I think application should use tuple when memory consumption is > matter, there is significant benefit. Or they should use a dict-of-lists instead of a list-of-dicts. Or they should simply switch to Pandas. Simply put, I doubt using DictReader is a sensible decision if you're writing performance-sensitive code. Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com