[AdBlock] Improved performance of loading rules
Don't use regexps for parsing rules.
Added benchmark for loading subscriptions
Before:
********* Start testing of AdBlockParseRule *********
Config: Using QTest library 4.8.6, Qt 4.8.6
PASS : AdBlockParseRule::initTestCase()
RESULT : AdBlockParseRule::parseEasyList():
596.3 msecs per iteration (total: 2,982, iterations: 5)
PASS : AdBlockParseRule::parseEasyList()
PASS : AdBlockParseRule::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of AdBlockParseRule *********
After:
********* Start testing of AdBlockParseRule *********
Config: Using QTest library 4.8.6, Qt 4.8.6
PASS : AdBlockParseRule::initTestCase()
RESULT : AdBlockParseRule::parseEasyList():
481.8 msecs per iteration (total: 2,409, iterations: 5)
PASS : AdBlockParseRule::parseEasyList()
PASS : AdBlockParseRule::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of AdBlockParseRule *********
2014-04-06 13:34:01 +02:00
|
|
|
include($$PWD/../../src/defines.pri)
|
|
|
|
|
|
|
|
isEqual(QT_MAJOR_VERSION, 5) {
|
|
|
|
QT += webkitwidgets network widgets printsupport sql script gui-private testlib
|
|
|
|
} else {
|
|
|
|
QT += core gui webkit sql network script
|
|
|
|
CONFIG += qtestlib
|
|
|
|
}
|
|
|
|
|
2017-08-25 17:11:29 +02:00
|
|
|
!unix|mac: LIBS += -L$$PWD/../../bin -lFalkon
|
|
|
|
!mac:unix: LIBS += $$PWD/../../bin/libFalkon.so
|
[AdBlock] Improved performance of loading rules
Don't use regexps for parsing rules.
Added benchmark for loading subscriptions
Before:
********* Start testing of AdBlockParseRule *********
Config: Using QTest library 4.8.6, Qt 4.8.6
PASS : AdBlockParseRule::initTestCase()
RESULT : AdBlockParseRule::parseEasyList():
596.3 msecs per iteration (total: 2,982, iterations: 5)
PASS : AdBlockParseRule::parseEasyList()
PASS : AdBlockParseRule::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of AdBlockParseRule *********
After:
********* Start testing of AdBlockParseRule *********
Config: Using QTest library 4.8.6, Qt 4.8.6
PASS : AdBlockParseRule::initTestCase()
RESULT : AdBlockParseRule::parseEasyList():
481.8 msecs per iteration (total: 2,409, iterations: 5)
PASS : AdBlockParseRule::parseEasyList()
PASS : AdBlockParseRule::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of AdBlockParseRule *********
2014-04-06 13:34:01 +02:00
|
|
|
|
2014-04-13 10:47:04 +02:00
|
|
|
QMAKE_LFLAGS+=$${QMAKE_LFLAGS_RPATH}$$PWD/../../bin
|
[AdBlock] Improved performance of loading rules
Don't use regexps for parsing rules.
Added benchmark for loading subscriptions
Before:
********* Start testing of AdBlockParseRule *********
Config: Using QTest library 4.8.6, Qt 4.8.6
PASS : AdBlockParseRule::initTestCase()
RESULT : AdBlockParseRule::parseEasyList():
596.3 msecs per iteration (total: 2,982, iterations: 5)
PASS : AdBlockParseRule::parseEasyList()
PASS : AdBlockParseRule::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of AdBlockParseRule *********
After:
********* Start testing of AdBlockParseRule *********
Config: Using QTest library 4.8.6, Qt 4.8.6
PASS : AdBlockParseRule::initTestCase()
RESULT : AdBlockParseRule::parseEasyList():
481.8 msecs per iteration (total: 2,409, iterations: 5)
PASS : AdBlockParseRule::parseEasyList()
PASS : AdBlockParseRule::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of AdBlockParseRule *********
2014-04-06 13:34:01 +02:00
|
|
|
|
|
|
|
DESTDIR =
|
|
|
|
OBJECTS_DIR = build
|
|
|
|
MOC_DIR = build
|
|
|
|
RCC_DIR = build
|
|
|
|
UI_DIR = build
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../src/lib/3rdparty \
|
|
|
|
$$PWD/../../src/lib/adblock \
|
|
|
|
$$PWD/../../src/lib/app \
|
|
|
|
$$PWD/../../src/lib/autofill \
|
|
|
|
$$PWD/../../src/lib/bookmarks \
|
|
|
|
$$PWD/../../src/lib/cookies \
|
|
|
|
$$PWD/../../src/lib/downloads \
|
|
|
|
$$PWD/../../src/lib/history \
|
|
|
|
$$PWD/../../src/lib/navigation \
|
|
|
|
$$PWD/../../src/lib/network \
|
|
|
|
$$PWD/../../src/lib/notifications \
|
|
|
|
$$PWD/../../src/lib/opensearch \
|
|
|
|
$$PWD/../../src/lib/other \
|
|
|
|
$$PWD/../../src/lib/plugins \
|
|
|
|
$$PWD/../../src/lib/popupwindow \
|
|
|
|
$$PWD/../../src/lib/preferences \
|
|
|
|
$$PWD/../../src/lib/rss \
|
|
|
|
$$PWD/../../src/lib/session \
|
|
|
|
$$PWD/../../src/lib/sidebar \
|
|
|
|
$$PWD/../../src/lib/tabwidget \
|
|
|
|
$$PWD/../../src/lib/tools \
|
|
|
|
$$PWD/../../src/lib/webkit \
|
|
|
|
$$PWD/../../src/lib/webtab \
|