AllenInstitute / datacube

Other
0 stars 1 forks source link

more efficient payload format for streamlines #78

Open chrisbarber opened 6 years ago

chrisbarber commented 6 years ago

The current list-of-dict format for streamline coordinates is pretty costly when it comes to WAMP serialization. Here is a commented line of code which implements instead dict-of-list which is faster and more compact when it comes to serialization:

https://github.com/AllenInstitute/datacube/blob/dev/services/locator/classes/spatial_search.py#L81

This change would have to be supported in the connectivity web app which is currently the only consumer of these streamline payloads.

chrisbarber commented 6 years ago

Possibly should also change the streamline format used by the 3d viewer