Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Substituted requests package with urllib #44

Merged
merged 2 commits into from
Mar 4, 2019

Conversation

remorses
Copy link
Contributor

@remorses remorses commented Mar 3, 2019

Now memory usage is much smaller ( 7 Mb instead of 15 Mb ).

Line #    Mem usage    Increment   Line Contents
================================================
     6     10.5 MiB     10.5 MiB   @profile
     7                             def main():
     8     17.5 MiB      7.0 MiB       import fastjsonschema
     9                             
    10                                 schema = {
    11                                     'properties':
    12                                         {
    13     17.5 MiB      0.0 MiB                   'hey': {}
    14                                         },
    15                                     'required': [
    16     17.5 MiB      0.0 MiB               'hey'
    17                                     ],
    18     17.5 MiB      0.0 MiB           'type': 'object'
    19                                 }
    20                             
    21     17.6 MiB      0.1 MiB       validate = fastjsonschema.compile(schema)
    22                             
    23     17.6 MiB      0.0 MiB       validate({'hey': 'man'})

@horejsek horejsek merged commit b45004e into horejsek:master Mar 4, 2019
@horejsek
Copy link
Owner

horejsek commented Mar 4, 2019

Version 2.9 released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants