You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like the fact that this library is very fast compared to json schema, but in term of memory usage this lib isn't any better.
The problem Is that requests takes about 15 Mb of memory after being loaded and the result is that the module is 20 Mb big.
Maybe I will find time to replace requests with urllib, are you ok with a pull request like that?
memory_profiler result:
Line # Mem usage Increment Line Contents
================================================ 6 24.7 MiB 24.7 MiB @profile 7 def main(): 8 9 40.5 MiB 15.8 MiB import fastjsonschema
The lib would takes 0.1 Mb of memory without requests and about 6 Mb using urllib
That's interesting. Yes, I would allow it. There is only one call in ref_resolve, so it should be quite easy. Maybe would be good to write the test to check memory usage so in the future it will stay reasonable as well. :-)
I like the fact that this library is very fast compared to json schema, but in term of memory usage this lib isn't any better.
The problem Is that
requests
takes about 15 Mb of memory after being loaded and the result is that the module is 20 Mb big.Maybe I will find time to replace
requests
withurllib
, are you ok with a pull request like that?memory_profiler result:
The lib would takes 0.1 Mb of memory without requests and about 6 Mb using urllib
The text was updated successfully, but these errors were encountered: