PoeticMediaLab / Lacuna

Lacuna: Digital Annotation for Teaching and Learning
http://www.lacunastories.com
GNU General Public License v2.0
36 stars 20 forks source link

optimization for annotations visualization data load #27

Closed hthayko closed 9 years ago

hthayko commented 9 years ago

It turned out that the bottleneck of the annotations visualization data load function was the point where thousands of annotations were loaded one by one. After changing that with a one time multiple_load some the total execution time of that function reduced more than 5 times (from 4.2s to 0.8s, for 1048 annotations).

mwidner commented 9 years ago

Excellent! Look upon my un-optimized code and weep.