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
Currently, DataObject's constructor fetches the object and stores its data in $this->data. However, SaveToFilename() and SaveToString() fetch the object again, which causes a lot of overhead (right now fetching a 6MB file takes about 6 seconds for us).
Unless there's a good reason for this, fixing SaveToString() should be as easy as return $this->data. Otherwise, please add a GetData() method that does just that. That way we have a choice.