Skip to content

DataObject::SaveToFilename() and ::SaveToString() fetch object a second time #25

@ErikMinekus

Description

@ErikMinekus

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions