brightway-lca / brightway2-data

Tools for the management of inventory databases and impact assessment methods. Part of the Brightway LCA framework.
https://docs.brightway.dev/
BSD 3-Clause "New" or "Revised" License
10 stars 24 forks source link

Consider using messagepack as alternative to JSON or pickles #1

Closed aleksandra-kim closed 10 years ago

aleksandra-kim commented 11 years ago

Original report by Chris Mutel (Bitbucket: cmutel, GitHub: cmutel).


Based on tests on my laptop, it is ~33% faster and uses less space. The two issues are:

  1. Strings would have to be decoded from raw bytes to Unicode
  2. Another dependency, which would have to be installed using easy_install on windows (because it is a binary egg)

The advantages are:

  1. Speed (especially on Windows, where a fast JSON parser might not be installed)
  2. A safe file format to move between computers (as opposed to pickles)

See also:

aleksandra-kim commented 10 years ago

Original comment by Chris Mutel (Bitbucket: cmutel, GitHub: cmutel).


This isn't changing any time soon. Section added to documentation.