We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

  1. 25 Feb, 2011 1 commit
    • Brion Vibber's avatar
      Scalability work on user backup stream generation. · 55b1f3d8
      Brion Vibber authored
      UserActivityStream -- used to create a full activity stream including subscriptions, favorites, notices, etc -- normally buffers everything into memory at once. This is infeasible for accounts with long histories of serious usage; it can take tens of seconds just to pull all records from the database, and working with them all in memory is very likely to hit resource limits.
      This commit adds an alternate mode for this class which avoids pulling notices until during the actual output. Instead of pre-sorting and buffering all the notices, empty spaces between the other activities are filled in with notices as we're making output. This means more smaller queries spread out during operations, and less stuff kept in memory.
      Callers (backupaccount action, and backupuser.php) which can stream their output pass an $outputMode param of UserActivityStream::OUTPUT_RAW, and during getString() it'll send straight to output as well as slurping the notices in this extra funky fashion.
      Other callers will let it default to the OUTPUT_STRING mode, which keeps the previous behavior.
      There should be a better way to do this, swapping out the stringer output for raw output more consitently.
  2. 28 Jan, 2011 1 commit
  3. 16 Jan, 2011 1 commit
  4. 08 Jan, 2011 1 commit
  5. 02 Jan, 2011 1 commit
  6. 15 Sep, 2010 3 commits
  7. 13 Sep, 2010 1 commit