Any reasonable database and server will be be able to handle these things without trouble, even if you have millions and millions of such records. The point is, if you only have a little bit of data, I really doubt it is worth the effort to muck with a standard format to trim off what amounts to less than a kilobyte of data. Unless you have some ridiculously long namespaces/class names (in which case you might want to reconsider your application structure), I imagine your serialized strings will very easily fit into, for instance, a MySQL text field. If that is the case, then overall you have almost no data in your serialization. You mention that the class names are sometimes longer than the actual data. If I can take this somewhere else entirely: you probably don't really want to do this at all. ![]() I have a good answer, a bad answer, and then an answer that addresses your question.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |