MediaWiki
REL1_22
|
Test revision text compression and decompression. More...
Go to the source code of this file.
Variables | |
$blob = new $type | |
$dbr = wfGetDB( DB_SLAVE ) | |
$hashes = array() | |
$keys = array() | |
$optionsWithArgs = array( 'start', 'limit', 'type' ) | |
$res | |
foreach($res as $row) | $serialized = serialize( $blob ) |
$t = -microtime( true ) | |
if(!isset($args[0])) | $title = Title::newFromText( $args[0] ) |
$uncompressedSize = 0 |
Test revision text compression and decompression.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
Definition in file testCompression.php.
$blob = new $type |
Definition at line 62 of file testCompression.php.
Referenced by DBABagOStuff\add(), ExternalStoreDB\batchFetchFromURLs(), DBABagOStuff\cas(), DBABagOStuff\decode(), DumpRev\execute(), MessageBlobStore\get(), DatabaseLogEntry\getParameters(), DBABagOStuff\incr(), MessageBlobStore\insertMessageBlob(), MessageBlobStore\reencodeBlob(), EhcacheBagOStuff\set(), DBABagOStuff\set(), DummyContentHandlerForTesting\unserializeContent(), and wfGetPrecompiledData().
Definition at line 49 of file testCompression.php.
Referenced by ImageListPager\__construct(), MergeHistoryPager\__construct(), ChangeTags\addTags(), ExternalStoreDB\batchFetchBlobs(), SpecialRecentChanges\buildMainQueryConds(), ImageListPager\buildQueryConds(), SiteStatsUpdate\cacheUpdate(), TitleListDependency\calculateTimestamps(), userOptions\CHANGER(), CheckStorage\check(), TrackBlobs\checkIntegrity(), SpecialRecentChanges\checkLastModified(), LocalRepo\checkRedirect(), RevisionDeleter\checkRevisionExistence(), RecompressTracked\checkTrackingTable(), CompressOld\compressWithConcat(), Title\countAuthorsBetween(), SpecialWatchlist\countItems(), Title\countRevisionsBetween(), Block\defaultRetroactiveAutoblock(), RefreshLinks\deleteLinksFromNonexistent(), RecompressTracked\doAllOrphans(), RecompressTracked\doAllPages(), JobQueueDB\doGetSiblingQueueSizes(), JobQueueDB\doGetSiblingQueuesWithJobs(), SpecialRecentchangeslinked\doMainQuery(), SpecialRecentChanges\doMainQuery(), RecompressTracked\doPage(), UserCache\doQuery(), GenderCache\doQuery(), LinkBatch\doQuery(), RefreshLinks\doRefreshLinks(), MovePageForm\doSubmit(), LinkHolderArray\doVariants(), Title\estimateRevisionCount(), StorageTypeStats\execute(), SpecialWatchlist\execute(), CheckBadRedirects\execute(), DumpRev\execute(), CheckImages\execute(), ClearInterwikiCache\execute(), FixUserRegistration\execute(), DeleteDefaultMessages\execute(), CleanupSpam\execute(), DumpSisterSites\execute(), InitEditCount\execute(), RemoveUnusedAccounts\execute(), CheckUsernames\execute(), DeleteImageCache\execute(), SpecialPagesWithProp\execute(), OrphanStats\execute(), UploadStashCleanup\execute(), ResetUserTokens\execute(), ShowSiteStats\execute(), FixBug20757\execute(), FixDoubleRedirects\execute(), RefreshFileHeaders\execute(), DumpLinks\execute(), RebuildFileCache\execute(), PurgeChangedPages\execute(), ExternalStoreDB\fetchBlob(), UploadDumper\fetchLocal(), HistoryAction\fetchRevisions(), UploadDumper\fetchUsed(), TitleCleanup\fileExists(), LocalRepo\findBySha1(), LocalRepo\findBySha1s(), LocalRepo\findFilesByPrefix(), RecompressTracked\finishIncompleteMoves(), DoubleRedirectsPage\formatResult(), LocalRepo\getArticleID(), Title\getBrokenLinksFrom(), Title\getCascadeProtectionSources(), User\getEditCount(), ResourceLoaderModule\getFileDependencies(), MessageBlobStore\getFromDB(), DeleteImageCache\getImageCount(), SpecialExport\getLinks(), SpecialRandomInCategory\getMinAndMaxForCat(), SpecialStatistics\getMostViewedPages(), ResourceLoaderModule\getMsgBlobMtime(), Title\getNotificationTimestamp(), SpecialExport\getPagesFromCategory(), SpecialExport\getPagesFromNamespace(), Title\getParentCategories(), BrokenRedirectsPage\getQueryInfo(), NewFilesPager\getQueryInfo(), WithoutInterwikiPage\getQueryInfo(), UsersPager\getQueryInfo(), LinkSearchPage\getQueryInfo(), SpecialRandomInCategory\getQueryInfo(), ImageListPager\getQueryInfoReal(), Block\getRangeCond(), Title\getRedirectsHere(), WikiPage\getRedirectTarget(), FixBug20757\getRevTextMap(), Linker\getRollbackEditCount(), RollbackEdits\getRollbackTitles(), Title\getSubpages(), HistoryBlobStub\getText(), HistoryBlobCurStub\getText(), TrackBlobs\getTextClause(), ResourceLoaderWikiModule\getTitleMtimes(), Title\getTitleProtection(), SpecialEditWatchlist\getWatchlist(), SpecialEditWatchlist\getWatchlistInfo(), User\idForName(), CheckStorage\importRevision(), User\incEditCount(), Title\isDeleted(), Title\isDeletedQuick(), Title\isNewPage(), SiteStats\jobs(), ChangeTags\listDefinedTags(), WatchedItem\load(), OldLocalFile\loadExtraFromDB(), OldLocalFile\loadFromDB(), Title\loadRestrictions(), Title\loadRestrictionsFromRows(), SearchMySQL\minSearchLength(), moveToExternal(), LinkSearchPage\mungeQuery(), Title\nameOf(), Block\newFromID(), UserArray\newFromIDs(), Title\newFromIDs(), OldLocalFile\newFromKey(), SiteStats\numberingroup(), SkinTemplate\outputPage(), ImageQueryPage\outputResults(), InfoAction\pageCounts(), WikiPage\pageData(), InfoAction\pageInfo(), SiteStats\pagesInNs(), PurgeList\purgeNamespace(), DoubleRedirectsPage\reallyGetQueryInfo(), LinkHolderArray\replaceInternal(), resolveStub(), resolveStubs(), CheckStorage\restoreText(), TableCleanup\runTable(), RandomPage\selectRandomPageFromDB(), SpecialRandomInCategory\selectRandomPageFromDB(), SpecialBlockList\showList(), SpecialPrefixindex\showPrefixChunk(), SpecialVersion\softwareInformation(), RecompressTracked\syncDBs(), ChangeTags\tagUsageStatistics(), WikiPageTest\testDoDeleteArticle(), WikiPageTest\testDoDeleteUpdates(), WikiPageTest\testDoEdit(), WikiPageTest\testDoEditContent(), TrackBlobs\trackOrphanText(), TrackBlobs\trackRevisions(), userOptions\USAGER(), and SpecialRecentChanges\webOutput().
$hashes = array() |
Definition at line 63 of file testCompression.php.
Referenced by ArrayUtils\consistentHashSort(), OrphanStats\execute(), and EhcacheBagOStuff\getCacheUrl().
$keys = array() |
Definition at line 64 of file testCompression.php.
Referenced by Installer\doGenerateKeys(), UploadStashCleanup\execute(), DatabaseMssql\insert(), DatabasePostgres\insert(), PrefixSearch\specialSearch(), ApiWatchTest\testGetRollbackToken(), ApiWatchTest\testWatchRollback(), wfArrayInsertAfter(), and wfCgiToArray().
Definition at line 24 of file testCompression.php.
$res |
$dbr->select( array( 'page', 'revision', 'text' ), '*', array( 'page_namespace' => $title->getNamespace(), 'page_title' => $title->getDBkey(), 'page_id=rev_page', 'rev_timestamp > ' . $dbr->addQuotes( $dbr->timestamp( $start ) ), 'rev_text_id=old_id' ), __FILE__, array( 'LIMIT' => $limit ) )
Definition at line 50 of file testCompression.php.
Definition at line 78 of file testCompression.php.
Referenced by CookieJar\serializeToHttpRequest().
Definition at line 66 of file testCompression.php.
Referenced by JSNode\__construct(), ParserOutput\addLanguageLink(), CoreParserFunctions\basepagename(), CoreParserFunctions\basepagenamee(), ProtectionForm\buildForm(), lessc\coerceColor(), FakeConverter\convertNamespace(), FakeConverter\convertTo(), UploadFromUrlTest\deleteFile(), PopulateImageSha1\doDBUpdates(), SpecialRecentChanges\doHeader(), MysqlUpdater\doSchemaRestructuring(), SearchOracle\escapeTerm(), ApiQueryCategoryInfo\execute(), SpecialExport\execute(), Protect\execute(), RollbackEdits\execute(), PPFuzzTester\execute(), RunJobs\execute(), ApiQueryUsers\execute(), ApiQueryInfo\extractPageInfo(), ApiQueryRecentChanges\extractRowInfo(), ApiQueryRevisions\extractRowInfo(), UtfNormal\fastDecompose(), UsersPager\formatRow(), CoreParserFunctions\fullpagename(), CoreParserFunctions\fullpagenamee(), CreditsAction\getAuthor(), PreferencesForm\getButtons(), Skin\getCategoryLinks(), ParserOutput\getDisplayTitle(), Linker\getLinkColour(), PNGMetadataExtractor\getMetadata(), WithoutInterwikiPage\getPageHeader(), DatabaseSqliteTest\getTables(), ApiQueryInfo\getTSIDs(), Title\indexTitle(), ApiQueryBase\keyToTitle(), Skin\lastModified(), ApiBase\makeHelpMsgParameters(), Title\makeTitle(), LinksUpdateTest\makeTitleAndParserOutput(), Title\makeTitleSafe(), CoreParserFunctions\mwnamespace(), CoreParserFunctions\namespacee(), CoreParserFunctions\namespacenumber(), Title\newFromDBkey(), CategoryPage\newFromID(), Title\newFromRow(), Title\newFromText(), Title\newFromURL(), MediaWikiSite\normalizePageName(), CoreParserFunctions\pagename(), CoreParserFunctions\pagenamee(), SearchOracle\parseQuery(), ApiQueryWatchlist\parseRCType(), ApiQueryRecentChanges\parseRCType(), JSMinPlus\parseTree(), Preferences\profilePreferences(), WfTimestampTest\provideNormalTimestamps(), Parser\pstPass2(), Sanitizer\removeHTMLtags(), CoreParserFunctions\rootpagename(), CoreParserFunctions\rootpagenamee(), ApiQueryWatchlistRaw\run(), ApiQueryLinks\run(), CacheTime\setCacheTime(), ParserOutput\setEditSectionTokens(), Skin\setRelevantTitle(), Profiler\setTemplated(), ParserOutput\setTitleText(), QuickTemplate\setTranslator(), SpecialSearch\showCreateLink(), SpecialPrefixindex\showPrefixChunk(), EmailConfirmation\showRequestForm(), SpecialSearch\showResults(), LoadBalancer\sleep(), CoreParserFunctions\subjectpagename(), CoreParserFunctions\subjectpagenamee(), CoreParserFunctions\subjectspace(), CoreParserFunctions\subjectspacee(), CoreParserFunctions\subpagename(), CoreParserFunctions\subpagenamee(), CoreParserFunctions\talkpagename(), CoreParserFunctions\talkpagenamee(), CoreParserFunctions\talkspace(), CoreParserFunctions\talkspacee(), ExtraParserTest\testBug8689(), WikiPageTest\testDoDeleteArticle(), TextContentTest\testGetRedirectTarget(), WikiPageTest\testGetRedirectTarget(), LinksUpdateTest\testUpdate_categorylinks(), LinksUpdateTest\testUpdate_externallinks(), LinksUpdateTest\testUpdate_imagelinks(), LinksUpdateTest\testUpdate_iwlinks(), LinksUpdateTest\testUpdate_langlinks(), LinksUpdateTest\testUpdate_page_props(), LinksUpdateTest\testUpdate_pagelinks(), LinksUpdateTest\testUpdate_templatelinks(), and ApiQueryBase\titleToKey().
if (!isset($args[0])) $title = Title::newFromText( $args[0] ) |
Definition at line 32 of file testCompression.php.
$uncompressedSize = 0 |
Definition at line 65 of file testCompression.php.