Skip to content

Instantly share code, notes, and snippets.

View andir's full-sized avatar

Andreas Rammhold andir

View GitHub Profile
@andir
andir / gist:8399017
Created January 13, 2014 11:51
flask-restless to_dict sqlalchemy homebrew method
[6.848185062408447, 6.854957103729248, 6.840436935424805]
Timer unit: 1e-06 s
File: [..]/flask_restless/helpers.py
Function: to_dict at line 237
Total time: 11.6519 s
Line # Hits Time Per Hit % Time Line Contents
==============================================================
237 def to_dict(instance, deep=None, exclude=None, include=None,
@andir
andir / gist:8398978
Created January 13, 2014 11:47
flask-restless to_dict sqlalchemy inspection method
[3.315706968307495, 3.330582857131958, 3.3374509811401367]
Timer unit: 1e-06 s
File: [..]/flask_restless/helpers.py
Function: to_dict at line 237
Total time: 6.60634 s
Line # Hits Time Per Hit % Time Line Contents
==============================================================
237 def to_dict(instance, deep=None, exclude=None, include=None,