MediaWiki
REL1_24
|
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 DatabaseMssql\addQuotes(), ExternalStoreDB\batchFetchFromURLs(), DumpRev\execute(), MessageBlobStore\get(), MessageBlobStore\insertMessageBlob(), MessageBlobStore\reencodeBlob(), JobQueueRedis\serialize(), JobQueueRedis\unserialize(), DummyContentHandlerForTesting\unserializeContent(), and wfGetPrecompiledData().
Definition at line 49 of file testCompression.php.
Referenced by ImageListPager\__construct(), ExternalStoreDB\batchFetchBlobs(), SpecialRecentChanges\buildMainQueryConds(), SpecialWatchlist\buildMainQueryConds(), ImageListPager\buildQueryConds(), UserOptions\CHANGER(), CheckStorage\check(), TrackBlobs\checkIntegrity(), SpecialRecentChanges\checkLastModified(), RevisionDeleter\checkRevisionExistence(), RecompressTracked\checkTrackingTable(), CompressOld\compressWithConcat(), SpecialWatchlist\countItems(), Title\countRevisionsBetween(), PrefixSearch\defaultSearchBackend(), RefreshLinks\deleteLinksFromNonexistent(), Title\deleteTitleProtection(), RecompressTracked\doAllOrphans(), RecompressTracked\doAllPages(), SpecialRecentChangesLinked\doMainQuery(), SpecialRecentChanges\doMainQuery(), SpecialWatchlist\doMainQuery(), RecompressTracked\doPage(), UserCache\doQuery(), GenderCache\doQuery(), LinkBatch\doQuery(), RefreshLinks\doRefreshLinks(), Title\estimateRevisionCount(), StorageTypeStats\execute(), CompareParserCache\execute(), FindMissingFiles\execute(), CheckBadRedirects\execute(), CheckImages\execute(), ClearInterwikiCache\execute(), FixUserRegistration\execute(), DumpRev\execute(), DeleteDefaultMessages\execute(), DumpSisterSites\execute(), InitEditCount\execute(), RemoveUnusedAccounts\execute(), CheckUsernames\execute(), DeleteImageCache\execute(), CleanupSpam\execute(), UploadStashCleanup\execute(), FixDoubleRedirects\execute(), RefreshFileHeaders\execute(), FixBug20757\execute(), ShowSiteStats\execute(), OrphanStats\execute(), DumpLinks\execute(), ResetUserTokens\execute(), PurgeChangedPages\execute(), RebuildFileCache\execute(), ExternalStoreDB\fetchBlob(), UploadDumper\fetchLocal(), UploadDumper\fetchUsed(), TitleCleanup\fileExists(), RecompressTracked\finishIncompleteMoves(), DoubleRedirectsPage\formatResult(), Title\getAuthorsBetween(), WikiPage\getCategories(), ApiQueryUserInfo\getCurrentUserInfo(), User\getEditCount(), SpecialPagesWithProp\getExistingPropNames(), MessageBlobStore\getFromDB(), DeleteImageCache\getImageCount(), SpecialExport\getLinks(), SpecialRandomInCategory\getMinAndMaxForCat(), SpecialStatistics\getMostViewedPages(), SpecialExport\getPagesFromCategory(), SpecialExport\getPagesFromNamespace(), BrokenRedirectsPage\getQueryInfo(), MediaStatisticsPage\getQueryInfo(), WithoutInterwikiPage\getQueryInfo(), NewFilesPager\getQueryInfo(), UsersPager\getQueryInfo(), SpecialRandomInCategory\getQueryInfo(), LinkSearchPage\getQueryInfo(), ImageListPager\getQueryInfoReal(), FixBug20757\getRevTextMap(), Linker\getRollbackEditCount(), RollbackEdits\getRollbackTitles(), HistoryBlobCurStub\getText(), TrackBlobs\getTextClause(), ResourceLoaderWikiModule\getTitleInfo(), SpecialEditWatchlist\getWatchlist(), SpecialEditWatchlist\getWatchlistInfo(), User\idForName(), CheckStorage\importRevision(), User\incEditCount(), SiteStats\jobs(), Title\legalChars(), ChangeTags\listDefinedTags(), BloomFilterTitleHasLogs\merge(), SearchMySQL\minSearchLength(), moveToExternal(), UserArray\newFromIDs(), SiteStats\numberingroup(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), InfoAction\pageCounts(), WikiPage\pageDataFromId(), InfoAction\pageInfo(), SiteStats\pagesInNs(), PurgeList\purgeNamespace(), DoubleRedirectsPage\reallyGetQueryInfo(), resolveStub(), resolveStubs(), CheckStorage\restoreText(), TableCleanup\runTable(), RandomPage\selectRandomPageFromDB(), SpecialRandomInCategory\selectRandomPageFromDB(), SpecialWatchlist\setTopText(), SpecialBlockList\showList(), SpecialPrefixindex\showPrefixChunk(), SpecialVersion\softwareInformation(), RecompressTracked\syncDBs(), ChangeTags\tagUsageStatistics(), WikiPageTest\testDoDeleteArticle(), WikiPageTest\testDoDeleteUpdates(), WikiPageTest\testDoEdit(), WikiPageTest\testDoEditContent(), TrackBlobs\trackOrphanText(), TrackBlobs\trackRevisions(), and UserOptions\USAGER().
$hashes = array() |
Definition at line 63 of file testCompression.php.
Referenced by HashRing\__construct(), ArrayUtils\consistentHashSort(), LocalFileDeleteBatch\doDBInserts(), and OrphanStats\execute().
$keys = array() |
Definition at line 64 of file testCompression.php.
Referenced by ParserOutput\addJsConfigVars(), Installer\createSysop(), UploadStashCleanup\execute(), MessageBlobStore\getFromDB(), DatabaseMssql\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(), lessc\coerceColor(), FakeConverter\convert(), PrefixSearch\defaultSearchBackend(), UploadFromUrlTest\deleteFile(), PopulateImageSha1\doDBUpdates(), SpecialRecentChanges\doHeader(), MysqlUpdater\doSchemaRestructuring(), SearchOracle\escapeTerm(), SpecialExport\execute(), ApiQueryCategoryInfo\execute(), Protect\execute(), RollbackEdits\execute(), PPFuzzTester\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(), ApiQueryBase\keyToTitle(), Skin\lastModified(), lessc\lib_contrast(), LinksUpdateTest\makeTitleAndParserOutput(), CoreParserFunctions\mwnamespace(), CoreParserFunctions\namespacee(), CoreParserFunctions\namespacenumber(), CategoryPage\newFromID(), MediaWikiSite\normalizePageName(), CoreParserFunctions\pageid(), CoreParserFunctions\pagename(), CoreParserFunctions\pagenamee(), SearchOracle\parseQuery(), JSMinPlus\parseTree(), Preferences\profilePreferences(), WfTimestampTest\provideNormalTimestamps(), Sanitizer\removeHTMLtags(), CoreParserFunctions\revisionday(), CoreParserFunctions\revisionday2(), CoreParserFunctions\revisionid(), CoreParserFunctions\revisionmonth(), CoreParserFunctions\revisionmonth1(), CoreParserFunctions\revisiontimestamp(), CoreParserFunctions\revisionuser(), CoreParserFunctions\revisionyear(), CoreParserFunctions\rootpagename(), CoreParserFunctions\rootpagenamee(), ApiQueryWatchlistRaw\run(), ApiQueryLinks\run(), ApiQueryBacklinksprop\run(), DatabaseMssql\selectSQLText(), ParserOutput\setEditSectionTokens(), Skin\setRelevantTitle(), ParserOutput\setTitleText(), SpecialPrefixindex\showPrefixChunk(), EmailConfirmation\showRequestForm(), CoreParserFunctions\subjectpagename(), CoreParserFunctions\subjectpagenamee(), CoreParserFunctions\subjectspace(), CoreParserFunctions\subjectspacee(), CoreParserFunctions\subpagename(), CoreParserFunctions\subpagenamee(), CoreParserFunctions\talkpagename(), CoreParserFunctions\talkpagenamee(), CoreParserFunctions\talkspace(), CoreParserFunctions\talkspacee(), 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(), ApiQueryBase\titlePartToKey(), StringPrefixSearch\titles(), and ApiQueryBase\titleToKey().
if (!isset($args[0])) $title = Title::newFromText( $args[0] ) |
Definition at line 33 of file testCompression.php.
$uncompressedSize = 0 |
Definition at line 65 of file testCompression.php.