summaryrefslogtreecommitdiffstats
path: root/browse.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-06-11 12:37:58 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2013-06-12 13:46:39 -0400
commit05009329cf9e5ad8601b01844716d6d5ed244daa (patch)
treefcd3a0eeaf8ff22bef07e456be60ec67f52101da /browse.php
parenta957ab19cdf3e86fe78a4bf82f287d8c622cf67e (diff)
downloadampache-05009329cf9e5ad8601b01844716d6d5ed244daa.tar.gz
ampache-05009329cf9e5ad8601b01844716d6d5ed244daa.tar.bz2
ampache-05009329cf9e5ad8601b01844716d6d5ed244daa.zip
Add naive compaction for Query serializationapi
Can be very efficient with the right input, but probably has degenerative cases where it increases the size. Worst-case size increase is one character per ID in the result set, so it shouldn't be an issue. String lengths for a large search result that was unstorable before: serialize: 1991874 json_encode: 756249 cooked: 244 And some with more discontinuity: serialize: 1772238 json_encode: 674751 cooked: 37950 serialize: 164942 json_encode: 65771 cooked: 25369
Diffstat (limited to 'browse.php')
-rw-r--r--browse.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/browse.php b/browse.php
index ed8b94be..e5994c38 100644
--- a/browse.php
+++ b/browse.php
@@ -63,6 +63,7 @@ switch($_REQUEST['action']) {
$browse->show_objects();
break;
case 'tag':
+ //FIXME: This whole thing is ugly, even though it works.
$browse->set_sort('count','ASC');
// This one's a doozy
$browse->set_simple_browse(false);