Skip to content

ujson? #12

@NichtJens

Description

@NichtJens
  • do we only use json features that are available in ujson?
  • should we make ujson a proper dependency?
  • if we keep it optional, should we use it everywhere (e.g., the handlers) if it's installed?*
  • or should we just drop the try/except import in mflow.py since it's not worth it?

*it would be easy to add a shim xjson.py (or similar):

try:
    from ujson import *
except ImportError:
    from json import *

and do:

from . import xjson as json

or just add it to utils.py:

try:
    import ujson as json
except:
    import json

and do:

from .utils import json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions