gecko-dev/toolkit/components/url-classifier
Thomas Nguyen fd95099ac3 Bug 1361699 - Add buffer when writing hashstore to file r=gcp,mcmanus
We write a lot of 4-bytes prefixes to file which call many system calls.
We should use a buffer and only write to file if the buffer is full or
finish writing. nsIBufferedOutputStream is a good candidate to do that

MozReview-Commit-ID: CzGOd7iXVTv

--HG--
extra : rebase_source : 25f1ce804b9a53e0a0a4023a1aa91f1a0ed98547
2017-05-19 13:17:07 +08:00
..
chromium Bug 1331139 - Sync safebrowsing.proto from Chromium. r=francois 2017-02-27 12:18:50 +08:00
content Bug 1368170 - Remove unused Function.prototype.inherits methods. r=francois 2017-05-26 13:46:10 -07:00
docs Bug 1345611 - Change behavior of subdocument Flash blocking to be Third-Party Flash blocking r=bsmedberg,qdot 2017-03-10 10:50:21 -08:00
protobuf Bug 1331139 - Sync safebrowsing.proto from Chromium. r=francois 2017-02-27 12:18:50 +08:00
tests Backed out changeset c0b940487708 (bug 1359299) for causing intermittent Windows safebrowsing crashes. 2017-05-24 09:11:04 -04:00
ChunkSet.cpp Bug 1299489 - Change nsTArray to use a custom iterator based on index instead of pointers to improve iterator invalidation safety of ranged for loops, r=froydnj 2016-12-08 15:54:45 -10:00
ChunkSet.h
Classifier.cpp Backed out changeset c0b940487708 (bug 1359299) for causing intermittent Windows safebrowsing crashes. 2017-05-24 09:11:04 -04:00
Classifier.h Backed out changeset c0b940487708 (bug 1359299) for causing intermittent Windows safebrowsing crashes. 2017-05-24 09:11:04 -04:00
Entries.h Backed out changeset c0b940487708 (bug 1359299) for causing intermittent Windows safebrowsing crashes. 2017-05-24 09:11:04 -04:00
HashStore.cpp Bug 1361699 - Add buffer when writing hashstore to file r=gcp,mcmanus 2017-05-19 13:17:07 +08:00
HashStore.h Bug 1333328 - Refactor cache miss handling mechanism for V2. r=francois 2017-05-04 09:38:14 +08:00
LookupCache.cpp Backed out changeset c0b940487708 (bug 1359299) for causing intermittent Windows safebrowsing crashes. 2017-05-24 09:11:04 -04:00
LookupCache.h Backed out changeset c0b940487708 (bug 1359299) for causing intermittent Windows safebrowsing crashes. 2017-05-24 09:11:04 -04:00
LookupCacheV4.cpp Backed out changeset c0b940487708 (bug 1359299) for causing intermittent Windows safebrowsing crashes. 2017-05-24 09:11:04 -04:00
LookupCacheV4.h Bug 1333328 - Refactor cache miss handling mechanism for V2. r=francois 2017-05-04 09:38:14 +08:00
moz.build Bug 1360480 - about:url-classifier: Cache information. r=francois 2017-05-17 10:32:33 +08:00
nsCheckSummedOutputStream.cpp Bug 1361699 - Add buffer when writing hashstore to file r=gcp,mcmanus 2017-05-19 13:17:07 +08:00
nsCheckSummedOutputStream.h Bug 1361699 - Add buffer when writing hashstore to file r=gcp,mcmanus 2017-05-19 13:17:07 +08:00
nsIUrlClassifierDBService.idl Bug 1360480 - about:url-classifier: Cache information. r=francois 2017-05-17 10:32:33 +08:00
nsIUrlClassifierHashCompleter.idl Bug 1311935 - P2. Process fullHashes.find response. r=francois 2017-04-11 11:50:48 +08:00
nsIUrlClassifierInfo.idl Bug 1360480 - about:url-classifier: Cache information. r=francois 2017-05-17 10:32:33 +08:00
nsIUrlClassifierPrefixSet.idl
nsIUrlClassifierStreamUpdater.idl
nsIUrlClassifierTable.idl
nsIUrlClassifierUtils.idl Bug 1331881 - Minimum wait duration and negative cache duration should be passed even if there is no match. r=francois,henry 2017-01-18 17:34:03 +08:00
nsIUrlListManager.idl Bug 1348253 - about:url-classifier: Providers information and update button. r=francois 2017-04-19 00:33:08 +08:00
nsURLClassifier.manifest
nsUrlClassifierDBService.cpp Backed out changeset 44635c073692 (bug 1345058) on suspicion of causing intermittent xpcshell failures in toolkit/components/url-classifier/tests/unit/test_bug1274685_unowned_list.js on OS X. r=backout 2017-05-19 13:13:18 +02:00
nsUrlClassifierDBService.h Bug 1367521 - Fix misspellings of "delegate". r=dholbert 2017-05-24 10:43:11 -07:00
nsUrlClassifierHashCompleter.js Bug 1363879 - Sort gethash prefixes to hide noise entries r=francois 2017-05-17 16:11:36 +08:00
nsUrlClassifierInfo.cpp Bug 1366996 - Fix uninitialized members in nsUrlClassifierInfo. r=francois 2017-05-31 08:52:34 +08:00
nsUrlClassifierInfo.h Bug 1360480 - about:url-classifier: Cache information. r=francois 2017-05-17 10:32:33 +08:00
nsUrlClassifierLib.js
nsUrlClassifierListManager.js Bug 1368170 - Remove unused Function.prototype.inherits methods. r=francois 2017-05-26 13:46:10 -07:00
nsUrlClassifierPrefixSet.cpp Bug 1060419 - make log_print use Printf.h, r=froydnj 2016-12-15 20:16:31 -07:00
nsUrlClassifierPrefixSet.h Bug 1305801 - Part 1: Implement variable length PrefixSet class for Safe Browsing v4. r=francois, r=gcp 2016-10-04 21:43:08 +08:00
nsUrlClassifierProxies.cpp Bug 1360480 - about:url-classifier: Cache information. r=francois 2017-05-17 10:32:33 +08:00
nsUrlClassifierProxies.h Bug 1360480 - about:url-classifier: Cache information. r=francois 2017-05-17 10:32:33 +08:00
nsUrlClassifierStreamUpdater.cpp Bug 1366394 - Bump the Safe Browsing update timeout to 15s. r=hchang 2017-05-19 14:25:11 -07:00
nsUrlClassifierStreamUpdater.h Bug 1336904 - Add timeouts for Safe Browsing updates r=francois 2017-04-24 17:51:06 +08:00
nsUrlClassifierUtils.cpp Bug 1362501 - Use LINUX_PLATFORM for Safe Browsing on non-Windows and non-OSX platforms. r=gcp 2017-05-05 11:38:38 -07:00
nsUrlClassifierUtils.h Bug 1339556 - remove nsUrlClassifierUtils::Charmap; r=gcp 2017-02-15 09:29:42 -05:00
ProtocolParser.cpp Bug 1060419 - convert one nsPrintfCString to MOZ_LOG, r=froydnj 2016-12-19 13:15:14 -07:00
ProtocolParser.h Bug 1332213 - Store the update stream duplicately in v2 protocol parser. r=francois. 2017-01-19 17:16:13 +08:00
RiceDeltaDecoder.cpp Bug 1312323 - Consider the "single encoded value" case and bubble the decoding error up. r=francois. 2016-10-26 10:03:49 +08:00
RiceDeltaDecoder.h Bug 1312323 - Consider the "single encoded value" case and bubble the decoding error up. r=francois. 2016-10-26 10:03:49 +08:00
SafeBrowsing.jsm Bug 1336915 - Disable updates and fullhash requests when the Google API key is missing r=francois 2017-04-25 15:20:44 +08:00
SBTelemetryUtils.cpp Bug 1311933 - P2. Add telemetry to measure if completion match type is the same for v2 and v4. r=francois 2017-04-12 09:11:18 +08:00
SBTelemetryUtils.h Bug 1336904 - Add timeouts for Safe Browsing updates r=francois 2017-04-24 17:51:06 +08:00
VariableLengthPrefixSet.cpp Bug 1311935 - P3. Implement safebrowsing v4 caching logic. r=francois 2017-04-10 14:21:08 +08:00
VariableLengthPrefixSet.h Bug 1297962 - Add noise data when sending v4 gethash request r=francois 2017-02-24 10:22:12 +08:00