mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 01:05:34 +03:00
Further benchmarking
This commit is contained in:
parent
466b2bd7d0
commit
942c8ae910
4 changed files with 11 additions and 9 deletions
|
@ -327,6 +327,7 @@ function App() {
|
|||
const [isLoggedIn, setIsLoggedIn] = useState(false);
|
||||
const [uiState, setUIState] = useState('loading');
|
||||
__BENCHMARK.start('app-init');
|
||||
__BENCHMARK.start('time-to-following');
|
||||
__BENCHMARK.start('time-to-home');
|
||||
useLingui();
|
||||
|
||||
|
|
16
src/locales/en.po
generated
16
src/locales/en.po
generated
|
@ -531,7 +531,7 @@ msgstr ""
|
|||
#: src/pages/catchup.jsx:876
|
||||
#: src/pages/filters.jsx:89
|
||||
#: src/pages/followed-hashtags.jsx:40
|
||||
#: src/pages/home.jsx:52
|
||||
#: src/pages/home.jsx:53
|
||||
#: src/pages/notifications.jsx:505
|
||||
msgid "Home"
|
||||
msgstr ""
|
||||
|
@ -1248,7 +1248,7 @@ msgstr ""
|
|||
#: src/components/nav-menu.jsx:207
|
||||
#: src/components/shortcuts-settings.jsx:58
|
||||
#: src/components/shortcuts-settings.jsx:143
|
||||
#: src/pages/home.jsx:223
|
||||
#: src/pages/home.jsx:224
|
||||
#: src/pages/mentions.jsx:20
|
||||
#: src/pages/mentions.jsx:167
|
||||
#: src/pages/settings.jsx:1037
|
||||
|
@ -1260,8 +1260,8 @@ msgstr ""
|
|||
#: src/components/shortcuts-settings.jsx:49
|
||||
#: src/components/shortcuts-settings.jsx:149
|
||||
#: src/pages/filters.jsx:24
|
||||
#: src/pages/home.jsx:83
|
||||
#: src/pages/home.jsx:183
|
||||
#: src/pages/home.jsx:84
|
||||
#: src/pages/home.jsx:184
|
||||
#: src/pages/notifications.jsx:106
|
||||
#: src/pages/notifications.jsx:509
|
||||
msgid "Notifications"
|
||||
|
@ -2298,7 +2298,7 @@ msgid "New posts"
|
|||
msgstr ""
|
||||
|
||||
#: src/components/timeline.jsx:554
|
||||
#: src/pages/home.jsx:212
|
||||
#: src/pages/home.jsx:213
|
||||
#: src/pages/notifications.jsx:796
|
||||
#: src/pages/status.jsx:945
|
||||
#: src/pages/status.jsx:1318
|
||||
|
@ -3008,15 +3008,15 @@ msgstr ""
|
|||
msgid "Go to my instance (<0>{currentInstance}</0>)"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/home.jsx:208
|
||||
#: src/pages/home.jsx:209
|
||||
msgid "Unable to fetch notifications."
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/home.jsx:228
|
||||
#: src/pages/home.jsx:229
|
||||
msgid "<0>New</0> <1>Follow Requests</1>"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/home.jsx:234
|
||||
#: src/pages/home.jsx:235
|
||||
msgid "See all"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -66,7 +66,6 @@ function Following({ title, path, id, ...props }) {
|
|||
});
|
||||
}
|
||||
__BENCHMARK.end('fetch-home-first');
|
||||
__BENCHMARK.end('time-to-home');
|
||||
return {
|
||||
...results,
|
||||
value,
|
||||
|
@ -101,6 +100,7 @@ function Following({ title, path, id, ...props }) {
|
|||
}
|
||||
|
||||
useEffect(() => {
|
||||
__BENCHMARK.end('time-to-following');
|
||||
let sub;
|
||||
(async () => {
|
||||
if (streaming) {
|
||||
|
|
|
@ -28,6 +28,7 @@ function Home() {
|
|||
const { _ } = useLingui();
|
||||
const snapStates = useSnapshot(states);
|
||||
useEffect(() => {
|
||||
__BENCHMARK.end('time-to-home');
|
||||
(async () => {
|
||||
const keys = await db.drafts.keys();
|
||||
if (keys.length) {
|
||||
|
|
Loading…
Reference in a new issue